GNOME Bugzilla – Bug 599224
code.cpp generates extra </span> tags
Last modified: 2009-12-30 13:38:58 UTC
The HTML generated for C code has the occasional extra </span> tag. Some HTML parsers (including the one in swish-e) declare errors on the extra tags. The problem is in endCodeLine() in code.cpp (although the same problem exists in code.l, fortrancode.cpp, fortrancode.l, latexgen.cpp, etc.). This is the original function. It writes a closing tag, but doesn't set g_currentFontClass to 0. That lets a later point in the code send an extra closing tag. #line 8852 static void endCodeLine() { if (g_currentFontClass) { g_code->endFontClass(); } g_code->endCodeLine(); } The fix is obvious: static void endCodeLine() { if (g_currentFontClass) { g_code->endFontClass(); g_currentFontClass=0; } g_code->endCodeLine(); }
Indeed. I'll fix this in the next subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.6.2. Please verify if this is indeed the case and reopen the bug if you think it is not fixed (include any additional information that you think can be relevant).