[wpdev-commits] xmlscripts/documentation generate_html.py,1.3,1.4 parse.py,1.6,1.7
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-06-29 11:36:36
|
Update of /cvsroot/wpdev/xmlscripts/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27444 Modified Files: generate_html.py parse.py Log Message: Documentation Index: parse.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/parse.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** parse.py 26 Jun 2004 21:51:28 -0000 1.6 --- parse.py 29 Jun 2004 11:36:25 -0000 1.7 *************** *** 16,19 **** --- 16,20 ---- INHERIT_PATTERN = re.compile('\\\\inherit\s+(\w+)\s*(?=\Z|[\s\n]+\\\\\w)', re.S) FUNCTION_NAME_PATTERN = re.compile("\\\\function\s([\w\.]+)", re.S) + LINK_OBJECT_PATTERN = re.compile("<object\\s+id=\"([^\\\"]+)\">(.*?)<\\/object>", re.S) VERSION = "Unknown" *************** *** 30,34 **** def processtext(text): ! return text.strip().replace("\\", "\\\\").replace("\n", "<br>\n") # --- 31,48 ---- def processtext(text): ! text = text.strip().replace("\\", "\\\\").replace("\n", "<br>\n") ! ! # Replace the <object tags ! while 1: ! link = LINK_OBJECT_PATTERN.search(text) ! ! if not link: ! break ! ! # Replace ! replacement = '<a href="object_%s.html">%s</a>' % (link.group(1).lower(), link.group(2)) ! text = text[0:link.start()] + replacement + text[link.end():] ! ! return text # Index: generate_html.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/documentation/generate_html.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** generate_html.py 26 Jun 2004 21:51:28 -0000 1.3 --- generate_html.py 29 Jun 2004 11:36:25 -0000 1.4 *************** *** 452,455 **** --- 452,457 ---- rows = int(math.ceil(len(localfunctions) / 7.0)) + localfunctions.sort(namesort) + for row in range(0, rows): overview += "<tr>\n" *************** *** 466,470 **** text = text.replace('{FUNCTIONOVERVIEW}', overview) ! # Generate a list of methods overview = '' --- 468,472 ---- text = text.replace('{FUNCTIONOVERVIEW}', overview) ! # Generate a list of methods overview = '' |