summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv/latex2esis.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tools/sgmlconv/latex2esis.py')
-rwxr-xr-xDoc/tools/sgmlconv/latex2esis.py4
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):