From 8913a797d8e44247d9bab88fa68c002cbb639e92 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 3 Jul 2007 19:44:28 +0000 Subject: [PATCH] When converting tags, don't omit the change to bracket nesting count. Fixes rendering problems. --- webcit/html2html.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 */ -- 2.30.2