[Python-checkins] CVS: python/dist/src/Doc/tools/sgmlconv latex2esis.py,1.26,1.27

Fred L. Drake fdrake@users.sourceforge.net
Sun, 18 Nov 2001 21:27:42 -0800


Update of /cvsroot/python/python/dist/src/Doc/tools/sgmlconv
In directory usw-pr-cvs1:/tmp/cvs-serv23117

Modified Files:
	latex2esis.py 
Log Message:
Adjust input pre-processing so that a comment on the last line does not
break the processor; this will do the right thing.


Index: latex2esis.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/sgmlconv/latex2esis.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** latex2esis.py	2001/09/28 16:26:13	1.26
--- latex2esis.py	2001/11/19 05:27:40	1.27
***************
*** 110,114 ****
          self.ofp = ofp
          self.table = table
!         self.line = string.join([s.rstrip() for s in ifp.readlines()], "\n")
          self.preamble = 1
  
--- 110,116 ----
          self.ofp = ofp
          self.table = table
!         L = [s.rstrip() for s in ifp.readlines()]
!         L.append("")
!         self.line = string.join(L, "\n")
          self.preamble = 1