[gtk-doc] mkdb: again purge empty para tags when merging tmpl docs
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: again purge empty para tags when merging tmpl docs
- Date: Wed, 20 Oct 2010 08:55:30 +0000 (UTC)
commit de48a13ee2d2e3855218596a68c699bbb42b9e2f
Author: Stefan Kost <ensonic users sf net>
Date: Wed Oct 20 11:18:49 2010 +0300
mkdb: again purge empty para tags when merging tmpl docs
gtkdoc-mkdb.in | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index d29bc6b..a8308f5 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4306,6 +4306,13 @@ sub MergeSourceDocumentation {
if ($check_tmpl_doc ne "") {
$have_tmpl_docs = 1;
#print "## [$check_tmpl_doc]\n";
+ } else {
+ # if the docs have just an empty para, don't merge that.
+ $check_tmpl_doc = $tmpl_doc;
+ $check_tmpl_doc =~ s/(\s|\n)//msg;
+ if ($check_tmpl_doc eq "<para></para>") {
+ $tmpl_doc = "";
+ }
}
if (exists ($SourceSymbolDocs{$symbol})) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]