Edward, 

Can you take a look at this Debian bug and let me know what you think?
You can find it here: http://bugs.debian.org/293571

This is what I've found so far.  The _doctest_sub() function in
colorizer.py has responsibility for colorizing doctest blocks.  It uses
a regular expression (_DOCTEST_RE) to fill in some <span> tags that
specify the coloring.

The _COMMENT pattern '(#.*?$)' within _DOCTEST_RE is inadvertently
catching the # character in &#64; and putting a formatting <span> tag
between the & and # characters, resulting in a corrupt line:

   &<span class="py-comment">#64;nop</span>

rather than:

   <span class="py-comment">&#64;nop</span>

I can "fix" the problem by getting rid of the _COMMENT pattern all
together (ha!) or by by changing the _COMMENT pattern to something like
'(^[&]#.*?$)'.  I don't like either option, and I'm figuring you will
have something more appropriate in mind.

Thanks for the help,

KEN

-- 
Kenneth J. Pronovici <[EMAIL PROTECTED]>

Attachment: pgp9eemsXRvSh.pgp
Description: PGP signature

Reply via email to