[Epydoc-commits] SF.net SVN: epydoc: [1521] trunk/epydoc/src/epydoc/markup/doctest.py
Brought to you by:
edloper
From: <ed...@us...> - 2007-02-16 17:38:38
|
Revision: 1521 http://svn.sourceforge.net/epydoc/?rev=1521&view=rev Author: edloper Date: 2007-02-16 09:38:35 -0800 (Fri, 16 Feb 2007) Log Message: ----------- - Fixed bug that was causing an extra blank line to get inserted before ">>>" prompts in syntax-highlighted docstrings. Modified Paths: -------------- trunk/epydoc/src/epydoc/markup/doctest.py Modified: trunk/epydoc/src/epydoc/markup/doctest.py =================================================================== --- trunk/epydoc/src/epydoc/markup/doctest.py 2007-02-16 07:24:19 UTC (rev 1520) +++ trunk/epydoc/src/epydoc/markup/doctest.py 2007-02-16 17:38:35 UTC (rev 1521) @@ -197,11 +197,11 @@ # Example output: if want: if self.EXCEPT_RE.match(want): - output += [self.markup(line, 'except')+'\n' - for line in want.split('\n')] + output += '\n'.join([self.markup(line, 'except') + for line in want.split('\n')]) else: - output += [self.markup(line, 'output')+'\n' - for line in want.split('\n')] + output += '\n'.join([self.markup(line, 'output') + for line in want.split('\n')]) # Update charno charno = m.end() # Add any remaining post-example text. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |