>>> from postmarkup import render_bbcode
>>> render_bbcode("[color]For the lazy, use the render_bbcode function.")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\lib\postmarkup.py", line 149, in render_bbcode
return _postmarkup(bbcode, encoding, exclude_tags=exclude_tags,
auto_urls=au
to_urls)
File "C:\Python25\lib\postmarkup.py", line 997, in render_to_html
node_text = node_text(i)
File "C:\Python25\lib\postmarkup.py", line 867, in call
return tag.render_open(parser, node_index)
File "C:\Python25\lib\postmarkup.py", line 535, in render_open
color = self.params.split()[0:1][0].lower()
IndexError: list index out of range
Issue occurs if you have not specified the color - "[code]", not
"[code=somecolor]".
Best regards,
Krzysztof Jagiello
Original issue reported on code.google.com by balo...@gmail.com on 19 Jan 2009 at 4:07
Original issue reported on code.google.com by
balo...@gmail.com
on 19 Jan 2009 at 4:07