[Zope-Checkins] CVS: Zope2 - DocumentClass.py:1.22.2.4

chrism@serenade.digicool.com chrism@serenade.digicool.com
Tue, 26 Jun 2001 05:30:24 -0400


Update of /cvs-repository/Zope2/lib/python/StructuredText
In directory serenade:/home/chrism/sandboxes/Zope24Branch/lib/python/StructuredText

Modified Files:
      Tag: Zope-2_4-branch
	DocumentClass.py 
Log Message:
Collector #2342: Multi-arg appends foiled table rendering for Python 2.1

Fixed.  merge from trunk.



--- Updated File DocumentClass.py in package Zope2 --
--- DocumentClass.py	2001/06/26 02:17:36	1.22.2.3
+++ DocumentClass.py	2001/06/26 09:30:23	1.22.2.4
@@ -575,7 +575,7 @@
                 while innertable(tmpstr):
                     start,end   = innertable(tmpstr).span()
                     if not (start,end-1) in ignore:
-                        ignore.append(start,end-1)
+                        ignore.append((start,end-1))
                     tmpstr = " " + tmpstr[end:]
 
             # find the location of column dividers
@@ -768,7 +768,7 @@
                 else:
                     align="left"
                 
-                cols.append(row[index][0],row[index][1],align,valign,row[index][2])
+                cols.append((row[index][0],row[index][1],align,valign,row[index][2]))
             rows.append(cols)
             cols = []
         return StructuredTextTable(rows,text,subs,indent=paragraph.indent)