Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00c96ae

Browse files
committed
Adjust input pre-processing so that a comment on the last line does not
break the processor; this will do the right thing.
1 parent e70dbe0 commit 00c96ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/tools/sgmlconv/latex2esis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ def __init__(self, ifp, ofp, table):
109109
self.write = ofp.write
110110
self.ofp = ofp
111111
self.table = table
112-
self.line = string.join([s.rstrip() for s in ifp.readlines()], "\n")
112+
L = [s.rstrip() for s in ifp.readlines()]
113+
L.append("")
114+
self.line = string.join(L, "\n")
113115
self.preamble = 1
114116

115117
def convert(self):

0 commit comments

Comments
 (0)