I am using SyntaxHighlighter
on Blogger
. The problem is that an unexpected line is added to my Python
code snippet.
The code is enclosed in:
<pre class="brush:bash;">
...
</pre>
My code is:
(venv) dm@Z580:~/workspace/venv/greeter$ python
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from greeter import app
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dm/workspace/venv/greeter/greeter/app.py", line 7, in <module>
from effects.dashed import add_dashes
ImportError: No module named 'effects'
What is actually rendered:
(venv) dm@Z580:~/workspace/venv/greeter$ python
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from greeter import app
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dm/workspace/venv/greeter/greeter/app.py", line 7, in <module>
from effects.dashed import add_dashes
ImportError: No module named 'effects'
</module></module></stdin>
So the last line </module></module></stdin>
is added to the output.
Why is this happening and how to prevent this behavior?