in DocBuild.py [0:0]
def MakeFriendly(self, string):
string = string.replace("_", " ").strip() # strip snake case
string = ' '.join(string.split()) # strip duplicate spaces
# Handle camel case
newstring = ""
prev_char_lowercase = False
for i in string:
if(not prev_char_lowercase):
newstring += i
else:
if(i.isupper()):
newstring += " " + i
else:
newstring += i
prev_char_lowercase = i.islower()
return newstring