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 700710 - Docbook output produces invalid XML for <programlisting> elements
Docbook output produces invalid XML for <programlisting> elements
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.4
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-05-20 12:52 UTC by Dean Camera
Modified: 2013-08-23 15:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dean Camera 2013-05-20 12:52:44 UTC
The 1.8.4 release of Doxygen generates invalid <programlisting> elements in some cases, resulting in an orphaned </link> element inside the <programlisting> node. Sample validation error output:

struct_h_i_d___unit__t.xml:5: parser error : Opening and ending tag mismatch: para line 4 and programlisting 
    <programlisting>#include <HIDParser.h></link></programlisting>

The issue appears to be at line 1174 of src/docbookgen.cpp:

    if (!nm.isEmpty())
    {
      t << "<para>" << endl;
      t << " <programlisting>#include ";
      if (ii->fileDef && !ii->fileDef->isReference()) // TODO: support external references
      {
        t << "<link linkend=\"" << ii->fileDef->getOutputFileBase() << "\">";
      }
      t << "&lt;" << nm << "&gt;" << "</link>";
      t << "</programlisting>" << endl;
      t << "</para>" << endl;
    }

The opening <link> item is conditionally generated if a file definition is present, however the closing </link> is generated under all circumstances.
Comment 1 Dimitri van Heesch 2013-05-25 13:59:16 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2013-08-23 15:04:41 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.5. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.