Skip to content

Commit 4e378ec

Browse files
committed
Don't generate a line containing only \ at the top of a new index
file.
1 parent dd2cc27 commit 4e378ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Doc/tools/mkhowto

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,11 +640,9 @@ def uniqify_module_table(filename):
640640

641641
def new_index(filename, label="genindex"):
642642
fp = open(filename, "w")
643-
fp.write(r"""\
644-
\begin{theindex}
645-
\label{%s}
646-
\end{theindex}
647-
""" % label)
643+
fp.write("\\begin{theindex}\n"
644+
"\\label{%s}\n"
645+
"\\end{theindex}\n" % label)
648646
fp.close()
649647

650648

0 commit comments

Comments
 (0)