logg = logging.getLogger("dbk2man")
def esc(text):
+ text = str(text)
text = text.replace(".", "\\&.")
text = text.replace("-", "\\-")
return text
def unescape(text):
+ text = str(text)
text = text.replace('<', '<')
text = text.replace('>', '>')
text = text.replace('"', '"')
text = text.replace('&', '&')
return text
def htm(text):
+ text = str(text)
text = text.replace('&', '&')
text = text.replace('<', '<')
text = text.replace('>', '>')
funcs = 0
for funcprototype in funcsynopsis.findall("funcprototype"):
item = ET.tostring(funcprototype)
+ item = str(item)
item = item.replace("<funcprototype>","")
item = item.replace("</funcprototype>","")
if False:
funcs = 0
for funcprototype in funcsynopsis.findall("funcprototype"):
item = ET.tostring(funcprototype)
+ item = str(item)
item = item.replace("<funcprototype>","")
item = item.replace("</funcprototype>","")
item = item.replace("<funcdef>","")
def para2man(para):
item = unescape(ET.tostring(para))
+ item = str(item)
item = item.replace("\n", " ")
item = item.replace(" ", " ")
item = item.replace(" ", " ")
def para2htm(para):
item = unescape(ET.tostring(para))
+ item = str(item)
item = item.replace("\n", " ")
item = item.replace(" ", " ")
item = item.replace(" ", " ")