Bug#293571: Epydoc wrongly escapes the at-sign in decorators in docstring codeblocks

2005-02-06 Thread Kenneth Pronovici
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 (_DOCTES

Bug#293571: Epydoc wrongly escapes the at-sign in decorators in docstring codeblocks

2005-02-06 Thread Kenneth Pronovici
> $ cat foo.py > def nop(x): > """ > No-operation decorator. Use like this: [snip] > But epy/index.html corrupts the @-sign. > > nop(x) > No-operation decorator. Use like this: > > >>> @nop Ok, I see it. It looks like the problem is that epydoc generates: @nop rather than:

Bug#293571: Epydoc wrongly escapes the at-sign in decorators in docstring codeblocks

2005-02-04 Thread Tommi Virtanen
Package: python-epydoc Version: 2.1-6 Severity: minor $ cat foo.py def nop(x): """ No-operation decorator. Use like this: >>> @nop ... def foo(): ... return 42 ... >>> foo() 42 >>> """ return x $ epydoc -o epy foo.py Importing 1 modules. [.] Buildin