Adjust input pre-processing so that a comment on the last line does not
break the processor; this will do the right thing.
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 @@
         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):