After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657081 - HTML_ALIGN_MEMBERS=NO produces invalid XHTML
HTML_ALIGN_MEMBERS=NO produces invalid XHTML
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.7.4
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2011-08-22 14:26 UTC by Jonathan Wakely
Modified: 2015-12-13 12:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Wakely 2011-08-22 14:26:29 UTC
Given this source code:

/// Foo here
namespace foo {
  /// Foo type
  struct Foo { };
}


and this Doxyfile config:

INPUT = . 
HTML_ALIGN_MEMBERS     = NO
GENERATE_LATEX         = NO

I get invalid XHTML, here is the relevant part:

<ul>
<li>struct <a class="el" href="structfoo_1_1Foo.html">Foo</a>
<dl class="el"><dd class="mdescRight"><a class="el" href="structfoo_1_1Foo.html" title="Foo type.">Foo</a> type.  <a href="structfoo_1_1Foo.html#details">More...</a><br/></dl></ul>

Notice that the <dd> and <li> elements are not closed.


(This was originally reported as a bug in the GCC bugzilla, http://gcc.gnu.org/PR50143, this report is reduced from the Doxygen config we use in libstdc++)
Comment 1 Christopher Yeleighton 2011-08-30 12:20:01 UTC
Please provide complete steps to reproduce (expand the shortcut ‘I get’).
Thanks.
Comment 2 Jonathan Wakely 2011-08-30 12:32:41 UTC
Put the source code in a source file. Then put the Doxyfile config in a doxygen Doxyfile config file. Then run doxygen.

Or, if that's not clear enough:

$ cat > foo.cc
/// Foo here
namespace foo {
  /// Foo type
  struct Foo { };
}
$
$ cat > Doxyfile
INPUT = .
HTML_ALIGN_MEMBERS     = NO
GENERATE_LATEX         = NO
$
$
$ doxygen

then look at html/namespacefoo.html
Comment 3 Jonathan Wakely 2011-08-30 13:20:44 UTC
N.B. I can also reproduce this with doxygen version 1.7.5.1
Comment 4 Dimitri van Heesch 2015-12-13 12:21:54 UTC
This issues seem to be fixed since doxygen 1.8.1
Please reopen this bug report if you still see this issue with the latest version of doxygen.