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 723913 - List in markdown: <p> inside the last element of a <ul> list
List in markdown: <p> inside the last element of a <ul> list
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.20
Other All
: Normal normal
: 1.20
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-08 17:00 UTC by Sébastien Wilmet
Modified: 2014-02-09 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2014-02-08 17:00:59 UTC
With the following Markdown list:

https://git.gnome.org/browse/gtksourceview/tree/gtksourceview/gtksourcebuffer.c#n85

The generated HTML is:

<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<span class="emphasis"><em>comment</em></span>: the region delimits a comment</li>
<li class="listitem">
<span class="emphasis"><em>string</em></span>: the region delimits a string</li>
<li class="listitem"><p><span class="emphasis"><em>no-spell-check</em></span>: the region should not be spell checked</p></li>
</ul></div>


Note the <p> inside the last <li>. Because of that, when reading the documentation, the last list element is shifted vertically from the other elements.
Comment 1 William Jon McCann 2014-02-09 04:18:01 UTC
Should be fixed in master now. Can you confirm?
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-09 12:35:01 UTC
commit c41814f02b7c7035bae3b1a7e07173f494755499
Author: William Jon McCann <william.jon.mccann@gmail.com>
Date:   Sat Feb 8 22:06:31 2014 -0500

    Always wrap blocks in list items in para
    
    We were only wrapping the last item in a para.
    Which results in invalid docbook and causes
    inconsistent list items.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723913
Comment 3 Sébastien Wilmet 2014-02-09 13:08:43 UTC
I confirm it is fixed, thanks.