When converting <A> tags, don't omit the change to
authorArt Cancro <ajc@citadel.org>
Tue, 3 Jul 2007 19:44:28 +0000 (19:44 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 3 Jul 2007 19:44:28 +0000 (19:44 +0000)
bracket nesting count.  Fixes rendering problems.

webcit/html2html.c

index 35fffd5d2bafc26302274fb967601217d8b2de30..72356c700bf539566f5baee2cd92b3c74e7372a9 100644 (file)
@@ -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, "</A>", 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, "</A>", 3)) --alevel;
        }
 
        /**     uncomment these two lines to override conversion        */