From: Art Cancro Date: Tue, 3 Jul 2007 19:44:28 +0000 (+0000) Subject: When converting tags, don't omit the change to X-Git-Tag: v7.86~3272 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=8913a797d8e44247d9bab88fa68c002cbb639e92 When converting tags, don't omit the change to bracket nesting count. Fixes rendering problems. --- diff --git a/webcit/html2html.c b/webcit/html2html.c index 35fffd5d2..72356c700 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -386,17 +386,17 @@ void output_html(char *supplied_charset, int treat_as_wiki) { } } else { - /** - * We need to know when we're inside a tag, - * so we don't turn things that look like URL's into - * links, when they're already links - or image sources. - */ - if (*ptr == '<') ++brak; - if (*ptr == '>') --brak; - if (!strncasecmp(ptr, "", 3)) --alevel; converted_msg[output_length] = *ptr++; converted_msg[++output_length] = 0; } + /** + * We need to know when we're inside a tag, + * so we don't turn things that look like URL's into + * links, when they're already links - or image sources. + */ + if (*ptr == '<') ++brak; + if (*ptr == '>') --brak; + if (!strncasecmp(ptr, "", 3)) --alevel; } /** uncomment these two lines to override conversion */