diff options
author | Fred Drake <fdrake@acm.org> | 2001-11-19 05:27:40 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-11-19 05:27:40 (GMT) |
commit | 00c96aeba62cb4be9472375e99db2b6dc26f937e (patch) | |
tree | 2f4df0fcd850039bebba147c01368d545265b437 | |
parent | e70dbe0fc5b2b638a90bb9c3961233f8819ae0ca (diff) | |
download | cpython-00c96aeba62cb4be9472375e99db2b6dc26f937e.zip cpython-00c96aeba62cb4be9472375e99db2b6dc26f937e.tar.gz cpython-00c96aeba62cb4be9472375e99db2b6dc26f937e.tar.bz2 |
Adjust input pre-processing so that a comment on the last line does not
break the processor; this will do the right thing.
-rwxr-xr-x | Doc/tools/sgmlconv/latex2esis.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/tools/sgmlconv/latex2esis.py b/Doc/tools/sgmlconv/latex2esis.py index 32115a8..28433c7 100755 --- a/Doc/tools/sgmlconv/latex2esis.py +++ b/Doc/tools/sgmlconv/latex2esis.py @@ -109,7 +109,9 @@ class Conversion: self.write = ofp.write self.ofp = ofp self.table = table - self.line = string.join([s.rstrip() for s in ifp.readlines()], "\n") + L = [s.rstrip() for s in ifp.readlines()] + L.append("") + self.line = string.join(L, "\n") self.preamble = 1 def convert(self): |