pirave / postmarkup

Automatically exported from code.google.com/p/postmarkup
0 stars 0 forks source link

Color tag issue #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
>>> 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

GoogleCodeExporter commented 8 years ago
My bad, I've been using a outdated version.

Original comment by balo...@gmail.com on 19 Jan 2009 at 4:13

GoogleCodeExporter commented 8 years ago
Thanks for the report anyway.

Original comment by willmcgugan on 30 Dec 2010 at 11:24