fix bug 3236, 'sc_html_parse_tag() does not recognize '<br/>' as line break'
authorPaul <paul@claws-mail.org>
Wed, 30 Jul 2014 11:58:18 +0000 (12:58 +0100)
committerPaul <paul@claws-mail.org>
Wed, 30 Jul 2014 11:58:18 +0000 (12:58 +0100)
Patch by  Fabian Keil.

src/html.c

index 71338af..ff5a61e 100644 (file)
@@ -643,7 +643,7 @@ static SC_HTMLState sc_html_parse_tag(SC_HTMLParser *parser)
        parser->state = SC_HTML_UNKNOWN;
        if (!tag) return SC_HTML_UNKNOWN;
 
-       if (!strcmp(tag->name, "br")) {
+       if (!strcmp(tag->name, "br") || !strcmp(tag->name, "br/")) {
                parser->space = FALSE;
                sc_html_append_char(parser, '\n');
                parser->state = SC_HTML_BR;