From: Fred Drake Date: Thu, 24 Jul 2003 02:00:18 +0000 (+0000) Subject: Don't generate a line containing only \ at the top of a new index X-Git-Tag: 2.2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e378ec47cac23c8ec1aff2ecfd8cde0118b0cd1;p=thirdparty%2FPython%2Fcpython.git Don't generate a line containing only \ at the top of a new index file. --- diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto index af46fffbbcd5..50e74c2e3ee0 100755 --- a/Doc/tools/mkhowto +++ b/Doc/tools/mkhowto @@ -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()