[gtk-doc] mkdb: just xml-tags in tmpl docs does not mean its empty.



commit 33d908964619c9408cbce2e9d9794e45b6209d3f
Author: Stefan Kost <ensonic users sf net>
Date:   Tue Jun 15 12:20:13 2010 +0300

    mkdb: just xml-tags in tmpl docs does not mean its empty.
    
    We lost tmpl docs that e.g. consist of a x:include.

 gtkdoc-mkdb.in |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index ba22826..6ec3474 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4278,9 +4278,8 @@ sub MergeSourceDocumentation {
 	## See if the symbol is documented in template
 	my $tmpl_doc = defined ($SymbolDocs{$symbol}) ? $SymbolDocs{$symbol} : "";
 	my $check_tmpl_doc =$tmpl_doc;
-	# remove all xml-tags and whitespaces
-	#$check_tmpl_doc =~ s/<\/?[a-z]+>//g;
-	$check_tmpl_doc =~ s/<.*?>//g;
+	# remove all xml-tags and whitespaces (don't kill <include href="..."> tags) 
+	$check_tmpl_doc =~ s/<\/?[a-z]+>//gi;
 	$check_tmpl_doc =~ s/\s//g;
 	# anything left ?
 	if ($check_tmpl_doc ne "") {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]