From 00c96aeba62cb4be9472375e99db2b6dc26f937e Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 19 Nov 2001 05:27:40 +0000 Subject: Adjust input pre-processing so that a comment on the last line does not break the processor; this will do the right thing. --- Doc/tools/sgmlconv/latex2esis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v0.12