[Zope] patch to ClassicStructuredText

Chris McDonough chrism@zope.com
Sat, 13 Apr 2002 09:35:58 -0400


Thanks, I've applied your patch to the 2.5 branch as well as the Zope trunk.

- C


Albert Ting wrote:
> Is ClassicStructuredText still being used?  I like the "Table" related
> features, which doesn't seem to be supported in StructuredText.
> 
> In any case, the Table.create() method needs a minor tweak.
> With python 2.1, the current regex doesn't understand \0x00.  Otherwise
> any columsn with a "0" or "x" will make the table invalid.
> 
>     def create(self,aPar,
>         td_reg=re.compile(r'[ \t\n]*\|\|([^\0x00|]*)')
>         ):
> 
> Instead, I think it should be this.
> 
>     def create(self,aPar,
>         td_reg=re.compile(r'[ \t\n]*\|\|([^\0|]*)')
>         ):
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


-- 
Chris McDonough                    Zope Corporation
http://www.zope.org             http://www.zope.com
"Killing hundreds of birds with thousands of stones"