[gtk-doc] mkdb: better xml fixup after blank line expansion
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: better xml fixup after blank line expansion
- Date: Mon, 12 Jul 2010 10:03:46 +0000 (UTC)
commit 235669e75846078b78580e90332f6d55296f8110
Author: Stefan Kost <ensonic users sf net>
Date: Mon Jul 12 13:00:59 2010 +0300
mkdb: better xml fixup after blank line expansion
Our previous heuristics have been a bit too simple. Make it works for different
refsect level and also docs starting with a para.
Fixes #623968
gtkdoc-mkdb.in | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index f822ad9..515a2ed 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4343,8 +4343,9 @@ sub MergeSourceDocumentation {
$src_doc = &ConvertBlankLines ($src_doc, $symbol);
$src_doc_para = "<para>\n$src_doc\n</para>";
# fixup xml markup
- $src_doc_para =~ s%<para>\n<refsect2%<refsect2%gms;
- $src_doc_para =~ s%</refsect2>\n</para>%</refsect2>%gms;
+ $src_doc_para =~ s%<para>\n(<refsect[1-9])%$1%gms;
+ $src_doc_para =~ s%<para>\n<para>\n%<para>\n%gms;
+ $src_doc_para =~ s%(</refsect[1-9]>)\n</para>%$1%gms;
#print "$symbol : [$src_doc][$src_doc_para]\n";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]