diff options
author | Fred Drake <fdrake@acm.org> | 1998-02-17 23:13:19 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-02-17 23:13:19 (GMT) |
commit | a219e7976f7d4c6873b38cbb180b95879c61b06d (patch) | |
tree | ada67a90cc155d6516b7ad4b5a0739d35b71ddeb | |
parent | 45a40930e757550095c38b6a1116daade4850d79 (diff) | |
download | cpython-a219e7976f7d4c6873b38cbb180b95879c61b06d.zip cpython-a219e7976f7d4c6873b38cbb180b95879c61b06d.tar.gz cpython-a219e7976f7d4c6873b38cbb180b95879c61b06d.tar.bz2 |
main(): Include a \label{modindex} in the output so latex won't let us re-use
the name elsewhere. This is useful for the logical filenames project,
since the "modindex" label is hardcoded into .latex2html-init.
-rwxr-xr-x | Doc/modindex.py | 3 | ||||
-rwxr-xr-x | Doc/tools/modindex.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Doc/modindex.py b/Doc/modindex.py index 84c1066..0209a1a 100755 --- a/Doc/modindex.py +++ b/Doc/modindex.py @@ -22,6 +22,7 @@ def cmp_items((s1, line1), (s2, line2)): return rc + def main(): if sys.argv[1:]: infile = sys.argv[1] @@ -36,7 +37,7 @@ def main(): base, ext = os.path.splitext(infile) outfile = base + ".ind" ofp = open(outfile, "w") - ofp.write("\\begin{theindex}\n\n") + ofp.write("\\begin{theindex}\n\label{modindex}\n\n") lines = ifp.readlines() for i in range(len(lines)): if lines[i][0] == '\\': diff --git a/Doc/tools/modindex.py b/Doc/tools/modindex.py index 84c1066..0209a1a 100755 --- a/Doc/tools/modindex.py +++ b/Doc/tools/modindex.py @@ -22,6 +22,7 @@ def cmp_items((s1, line1), (s2, line2)): return rc + def main(): if sys.argv[1:]: infile = sys.argv[1] @@ -36,7 +37,7 @@ def main(): base, ext = os.path.splitext(infile) outfile = base + ".ind" ofp = open(outfile, "w") - ofp.write("\\begin{theindex}\n\n") + ofp.write("\\begin{theindex}\n\label{modindex}\n\n") lines = ifp.readlines() for i in range(len(lines)): if lines[i][0] == '\\': |