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 699381 - Strange error message when having sole end tag for H4, H5 and H6
Strange error message when having sole end tag for H4, H5 and H6
Status: VERIFIED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.3.1-SVN
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-05-01 13:32 UTC by albert
Modified: 2013-05-20 14:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PATCH: correctioon for sole end tag H4 H5 and H6 (942 bytes, patch)
2013-05-01 13:37 UTC, albert
none Details | Review

Description albert 2013-05-01 13:32:30 UTC
When having the following C code:
/// @file
/// @brief test for sole end tag of h4 / h5 / h6
/// <h1> text in H1 formaat</h1>
/// <h2> text in H2 formaat</h2>
/// <h3> text in H3 formaat</h3>
/// <h4> text in H4 formaat</h4>
/// <h5> text in H5 formaat</h5>
/// <h6> text in H6 formaat</h6>
/// sole end h1 </h1><br>
/// sole end h2 </h2><br>
/// sole end h3 </h3><br>
/// sole end h4 </h4><br>
/// sole end h5 </h5><br>
/// sole end h6 </h6><br>

/// @brief document a
void a(void)
{
}

We get the (error) messages:
D:/speeltuin/bug_h4/aa.c:8: warning: Unexpected tag </h1> found
D:/speeltuin/bug_h4/aa.c:9: warning: Unexpected tag </h2> found
D:/speeltuin/bug_h4/aa.c:10: warning: Unexpected tag </h3> found
D:/speeltuin/bug_h4/aa.c:11: Unexpected end tag h4

ASSERT: "0" in ..\src\docparser.cpp (6260)
D:/speeltuin/bug_h4/aa.c:12: Unexpected end tag h5

ASSERT: "0" in ..\src\docparser.cpp (6260)
D:/speeltuin/bug_h4/aa.c:13: Unexpected end tag h6

ASSERT: "0" in ..\src\docparser.cpp (6260)
Comment 1 albert 2013-05-01 13:37:55 UTC
Created attachment 242993 [details] [review]
PATCH: correctioon for sole end tag H4 H5 and H6

This patch corrects the error messages for the sole end tags of H4, H5 and H6.
In the file docparser.cpp it is noted:

    default:
      // we should not get here!

So the corresponding cases have been added.
(problem was found during fixing bug 681733 regarding warn / error messages)
Comment 2 Dimitri van Heesch 2013-05-01 18:47:05 UTC
Thanks, I'll include the patch in the next subversion update.
Comment 3 Dimitri van Heesch 2013-05-19 12:36:46 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.4. 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.
Comment 4 albert 2013-05-20 14:09:10 UTC
Works as expected