What about <br/> parsing?

Create issue
Issue #1 resolved
Igor Kalishevsky created an issue

How can add a translation of <br/> into \n in the bbcode map?

That won't work.

[br]
start: \n
end:

Thanks.

Comments (3)

  1. Igor Kalishevsky reporter

    That seems to be ok, but..

    def handle_starttag(self, tag, attrs):
        if self.map.has_section(tag):
            chunk = self.map.get(tag, 'start') % Attributes(attrs or {})
            chunk = chunk.replace('\\n', '\n')
            self.data.append(chunk)
    
  2. Log in to comment