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

scoder at codespeak.net scoder at codespeak.net
Wed Apr 23 21:45:40 CEST 2008


Author: scoder
Date: Wed Apr 23 21:45:40 2008
New Revision: 54070

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/doc/mklatex.py
Log:
 r4039 at delle:  sbehnel | 2008-04-23 20:44:49 +0200
 PDF cleanup


Modified: lxml/trunk/doc/mklatex.py
==============================================================================
--- lxml/trunk/doc/mklatex.py	(original)
+++ lxml/trunk/doc/mklatex.py	Wed Apr 23 21:45:40 2008
@@ -65,7 +65,7 @@
 \chapter{%s}
 \label{%s}
 \input{%s}
-""".replace('            ', '') % (title, filename, filename))
+""" % (title, filename, filename))
 
 
 # the program ----
@@ -94,8 +94,11 @@
                 r'\documentclass' in line or \
                 r'\makeindex' in line:
             continue
-        if line.startswith(r'\usepackage') and line in existing_header_lines:
-            continue
+        if line.startswith(r'\usepackage'):
+            if line in existing_header_lines:
+                continue
+            if '{hyperref}' in line:
+                line = line.replace('black', 'blue')
         out.write( replace_epydoc_macros('', line) )
     out.close()
     doc.close()


More information about the lxml-checkins mailing list