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 722711 - [PATCH] Link refs with no title swallow an extra newline
[PATCH] Link refs with no title swallow an extra newline
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.6-GIT
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-01-21 16:21 UTC by Alex Merry
Modified: 2014-04-21 10:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix the issue (1.12 KB, patch)
2014-01-21 16:21 UTC, Alex Merry
none Details | Review
This input renders incorrectly (92 bytes, text/plain)
2014-01-21 16:22 UTC, Alex Merry
  Details
This input works fine (93 bytes, text/plain)
2014-01-21 16:23 UTC, Alex Merry
  Details
This input also works fine (102 bytes, text/plain)
2014-01-21 16:23 UTC, Alex Merry
  Details

Description Alex Merry 2014-01-21 16:21:37 UTC
Created attachment 266897 [details] [review]
Patch to fix the issue

If you have a link ref like

  [1]: http://www.example.com/

it will consume the following blank line as well; from a practical point of view, if you have

  [1]: http://www.example.com/
  
  ## Foo

it will put a # where the link ref was, and make Foo a level 1 (instead of level 2) heading.
Comment 1 Alex Merry 2014-01-21 16:22:43 UTC
Created attachment 266898 [details]
This input renders incorrectly

The link ref is replaced with a # and the Baz heading is the wrong level.
Comment 2 Alex Merry 2014-01-21 16:23:30 UTC
Created attachment 266899 [details]
This input works fine

The extra line between the link ref and the next heading avoids the issue.
Comment 3 Alex Merry 2014-01-21 16:23:56 UTC
Created attachment 266900 [details]
This input also works fine

The inclusion of the title avoids the issue.
Comment 4 Dimitri van Heesch 2014-01-26 14:18:40 UTC
Thanks, I'll include the patch in the next GIT update.
Comment 5 Dimitri van Heesch 2014-04-21 10:09:16 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.7. 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 (preferrably in the form of a self-contained example).