]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't generate a line containing only \ at the top of a new index
authorFred Drake <fdrake@acm.org>
Thu, 24 Jul 2003 02:00:18 +0000 (02:00 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 24 Jul 2003 02:00:18 +0000 (02:00 +0000)
file.

Doc/tools/mkhowto

index af46fffbbcd50f4e4b67fca268b186d83ab504a1..50e74c2e3ee086bfd95f07de4a6047d7f6bfba29 100755 (executable)
@@ -640,11 +640,9 @@ def uniqify_module_table(filename):
 
 def new_index(filename, label="genindex"):
     fp = open(filename, "w")
-    fp.write(r"""\
-\begin{theindex}
-\label{%s}
-\end{theindex}
-""" % label)
+    fp.write("\\begin{theindex}\n"
+             "\\label{%s}\n"
+             "\\end{theindex}\n" % label)
     fp.close()