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!
This commit is contained in:
Barry Warsaw 2000-07-28 06:40:10 +00:00
parent 821285d897
commit 4762067d68
1 changed files with 2 additions and 1 deletions

View File

@ -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 = ('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"\n'
' "http://www.w3.org/TR/REC-html40/loose.dtd">')
@ -91,7 +92,7 @@ def fixfile(infile, outfile):
break
if line[0] != "\f":
if line[0].strip():
if line.strip() == "Local Variables:":
if line.strip() == LOCALVARS:
break
fo.write("</pre>\n<h3>%s</h3>\n<pre>" % line.strip())
title = 0