peps: eb2bf2b90119 (original) (raw)
Mercurial > peps
changeset 63:eb2bf2b90119
Moved "Local Variables:" string farther away from the end of the file, so Emacs doesn't think this actually indicates the beginning of a local variable section!
Barry Warsaw barry@python.org | |
---|---|
date | Fri, 28 Jul 2000 06:40:10 +0000 |
parents | 5c9959727753 |
children | d5aaa3b025da |
files | pep2html.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] pep2html.py 3 |
line wrap: on
line diff
--- a/pep2html.py +++ b/pep2html.py @@ -19,6 +19,7 @@ import cgi, glob, os, re, sys HOST = "shell.sourceforge.net" # host for update HDIR = "/home/groups/python/htdocs/peps" # target host directory +LOCALVARS = "Local Variables:" DTD = ('') @@ -91,7 +92,7 @@ def fixfile(infile, outfile): break if line[0] != "\f": if line[0].strip():
if line.strip() == "Local Variables:":[](#l1.15)
if line.strip() == LOCALVARS:[](#l1.16) break[](#l1.17) fo.write("</pre>\n<h3>%s</h3>\n<pre>" % line.strip())[](#l1.18) title = 0[](#l1.19)