[gtk-doc] Always wrap blocks in list items in para
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Always wrap blocks in list items in para
- Date: Sun, 9 Feb 2014 04:17:20 +0000 (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
gtkdoc-mkdb.in | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 8dfeb1d..89ec976 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -5206,12 +5206,11 @@ sub MarkDownOutputDocBook {
if ($block->{"type"} eq "paragraph") {
$text = &MarkDownParseSpanElements ($block->{"text"});
-
if ($context eq "li" && $output eq "") {
if ($block->{"interrupted"}) {
$output .= "\n"."<para>".$text."</para>"."\n";
} else {
- $output .= $text;
+ $output .= "<para>".$text."</para>";
if ($#blocks > 0) {
$output .= "\n";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]