gtk-doc r659 - trunk
- From: stefkost svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-doc r659 - trunk
- Date: Fri, 23 Jan 2009 08:44:31 +0000 (UTC)
Author: stefkost
Date: Fri Jan 23 08:44:30 2009
New Revision: 659
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=659&view=rev
Log:
patch by: David NeÄas <yeti physics muni cz>
* gtkdoc-mkdb.in:
Don't add empty <para></para> tags to the docs to avoid breaking the
detection of undocumented things. Fixes #568732.
Modified:
trunk/ChangeLog
trunk/gtkdoc-mkdb.in
Modified: trunk/gtkdoc-mkdb.in
==============================================================================
--- trunk/gtkdoc-mkdb.in (original)
+++ trunk/gtkdoc-mkdb.in Fri Jan 23 08:44:30 2009
@@ -3848,15 +3848,17 @@
# If there is a blank line, finish the paragraph and start another.
$src_doc = &ConvertBlankLines ($src_doc, $symbol);
+ # Do not add <para> to nothing, it breaks missing docs checks.
+ my $src_doc_para = $src_doc ? "<para>\n$src_doc</para>\n" : "";
if ($symbol =~ m/$TMPL_DIR\/.+:Long_Description/) {
- $SymbolDocs{$symbol} = "<para>\n$src_doc</para>\n$tmpl_doc";
+ $SymbolDocs{$symbol} = "$src_doc_para$tmpl_doc";
} elsif ($symbol =~ m/$TMPL_DIR\/.+:.+/) {
# For the title/summary/see also section docs we don't want to
# add any <para> tags.
$SymbolDocs{$symbol} = "$src_doc"
} else {
- $SymbolDocs{$symbol} = "<para>\n$src_doc</para>\n$tmpl_doc";
+ $SymbolDocs{$symbol} = "$src_doc_para$tmpl_doc";
}
# merge parameters
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]