[Python-checkins] r42788 - peps/trunk/pep2pyramid.py
sean.reifschneider
python-checkins at python.org
Thu Mar 2 19:12:47 CET 2006
Author: sean.reifschneider
Date: Thu Mar 2 19:12:44 2006
New Revision: 42788
Modified:
peps/trunk/pep2pyramid.py
Log:
Removing some extra HTML markup, adding a closing pre.
Modified: peps/trunk/pep2pyramid.py
==============================================================================
--- peps/trunk/pep2pyramid.py (original)
+++ peps/trunk/pep2pyramid.py Thu Mar 2 19:12:44 2006
@@ -149,11 +149,6 @@
from email.Utils import parseaddr
basename = os.path.basename(inpath)
infile = iter(input_lines)
- # convert plaintext pep to minimal XHTML markup
- print >> outfile, DTD
- print >> outfile, '<html>'
- print >> outfile, COMMENT
- print >> outfile, '<head>'
# head
header = []
pep = ""
@@ -224,6 +219,8 @@
print >> outfile, '<pre>'
need_pre = 0
outfile.write(line)
+ if not need_pre:
+ print >> outfile, '</pre>'
docutils_settings = None
More information about the Python-checkins
mailing list