Update of /cvsroot/python/python/dist/src/Doc/tools In directory usw-pr-cvs1:/tmp/cvs-serv30013 Modified Files: prechm.py Log Message: Hack around the "2.1.6 Blank lines" bug in a way that the TOC still displays a recognizable section title (there are extra blanks at the end of it now, due to the nested anchor, but that's fine). Index: prechm.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/tools/prechm.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** prechm.py 21 Apr 2002 02:01:01 -0000 1.13 --- prechm.py 21 Apr 2002 04:44:11 -0000 1.14 *************** *** 275,290 **** def anchor_bgn(self, href, name, type): if self.proc: - self.saved_clear() - self.hrefstack.append(href) - - def anchor_end(self): - if self.proc: - title = cgi.escape(self.saved_get(), True) - path = self.path + '/' + self.hrefstack.pop() # XXX See SF bug <http://www.python.org/sf/546579>. ! # XXX index.html for the 2.2 language reference manual contains # XXX nested <a></a> tags in the entry for the section on blank # XXX lines. We want to ignore the nested part completely. if len(self.hrefstack) == 0: self.tab(object_sitemap % (title, path)) --- 275,292 ---- def anchor_bgn(self, href, name, type): if self.proc: # XXX See SF bug <http://www.python.org/sf/546579>. ! # XXX index.html for the 2.2.1 language reference manual contains # XXX nested <a></a> tags in the entry for the section on blank # XXX lines. We want to ignore the nested part completely. if len(self.hrefstack) == 0: + self.saved_clear() + self.hrefstack.append(href) + + def anchor_end(self): + if self.proc: + # XXX See XXX above. + if self.hrefstack: + title = cgi.escape(self.saved_get(), True) + path = self.path + '/' + self.hrefstack.pop() self.tab(object_sitemap % (title, path))
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4