[Zope] "patch" to DocumentClass.py
Andreas Jung
andreas@andreas-jung.com
Mon, 15 Apr 2002 21:08:43 -0400
please file a collector issue otherwise the patch might get lost.
-aj
----- Original Message -----
From: "Albert Ting" <alt@sonic.net>
To: <zope@zope.org>
Sent: Monday, April 15, 2002 21:05
Subject: [Zope] "patch" to DocumentClass.py
>
> Current code treats numbers in it's own paragraph as a NumberedText. This
> is especially problematic when one is trying to insert numbers in a
> StructuredTable. There is probably a better way, but below is a simple
> patch that seems to solve the problem.
>
> *** DocumentClass.py Mon Apr 15 18:04:59 2002
> --- DocumentClass.py~ Sun Feb 10 11:32:44 2002
> ***************
> *** 726,728 ****
> ! expr = re.compile(r'(\s*[%s]\.)|(\s*[0-9]+\.)|(\s*[0-9]+\s+)' %
letters).match,
> ! check = re.compile(r'^\s*([0-9]+)(\.[0-9]+)?\s*$').match):
> !
> --- 726,727 ----
> ! expr = re.compile(r'(\s*[%s]\.)|(\s*[0-9]+\.)|(\s*[0-9]+\s+)' %
letters).match):
> !
> ***************
> *** 739,742 ****
> -
> - if check(top):
> - return None
> -
> --- 737 ----
>
>
> _______________________________________________
> 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 )
>