[Lxml-checkins] r53872 - in lxml/trunk: . doc

scoder at codespeak.net scoder at codespeak.net
Sat Apr 19 16:46:56 CEST 2008


Author: scoder
Date: Sat Apr 19 16:46:53 2008
New Revision: 53872

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/doc/mklatex.py
Log:
 r4009 at delle:  sbehnel | 2008-04-19 16:22:03 +0200
 fix up ChangeLog TOC in PDF


Modified: lxml/trunk/doc/mklatex.py
==============================================================================
--- lxml/trunk/doc/mklatex.py	(original)
+++ lxml/trunk/doc/mklatex.py	Sat Apr 19 16:46:53 2008
@@ -156,10 +156,12 @@
     # also convert CHANGES.txt
     find_version_title = re.compile(
         r'(.*\\section\{)([0-9][^\} ]*)\s+\(([^)]+)\)(\}.*)').search
-    def change_version_title(line):
+    def fix_changelog(line):
         m = find_version_title(line)
         if m:
             line = "%sChanges in version %s, released %s%s" % m.groups()
+        else:
+            line = line.replace(r'\subsection{', r'\subsection*{')
         return line
 
     chgname = 'changes-%s.tex' % release
@@ -168,7 +170,7 @@
                os.path.join(lxml_path, 'CHANGES.txt'),
                chgpath)
     tex_postprocess(chgpath, os.path.join(dirname, "_part_%s" % chgname),
-                    process_line=change_version_title)
+                    process_line=fix_changelog)
 
     # Writing a master file
     print "Building %s\n" % TARGET_FILE


More information about the lxml-checkins mailing list