I hope this hasn't been brought up elsewhere, as I couldn't find this issue in past posts/reports, but this "bug" essentially concerns undesirable behavior when copy/pasting from a code block on a wiki page:
When creating a Python code block using <code python> ... </code> on a Mac OS X Snow Leopard machine, and viewing the resulting page in either Firefox or Safari, lines that are supposed to be blank consist of a space in the rendered page.
This has the unfortunate consequence that indented Python code blocks (that ever-beloved feature of Python) won't copy/paste nicely, as e.g.
test = 0
for i in xrange(10):
test += i
#a space is automatically present on this line even though it should have no spaces
for i in xrange(10):
test += i
will not proceed smoothly to the second for loop, but will return an IndentationError.
Can the Python code parsing module be set to remove this feature, as spaces are very important in Python and the current behavior interferes with the usage of Python code? It may be a feature of HTML, as Python code on e.g. Wikipedia, where e.g.
http://en.wikipedia.org/wiki/Viterbi_algorithm has completely un-copy/pastable behavior as well.
I'm very new at this, but let me know if I can do anything to help!