[Zope] patch to ClassicStructuredText

Albert Ting alt@sonic.net
Fri, 12 Apr 2002 18:09:36 -0700


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|]*)')
        ):