[gtk-doc/wip/desrt/fixes-for-glib: 4/5] gtkdoc-mkdb: don't warn on 'deprecated entities'
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/wip/desrt/fixes-for-glib: 4/5] gtkdoc-mkdb: don't warn on 'deprecated entities'
- Date: Thu, 12 Mar 2015 22:16:39 +0000 (UTC)
commit 8870e73453fdd59b7e82215bbf7fb94c70d92dfa
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Mar 12 15:42:48 2015 -0400
gtkdoc-mkdb: don't warn on 'deprecated entities'
This warning is only emitted when writing out code examples, which are
now in CDATA sections (and therefore don't need escaping). The escaping
is introduced, however, by gtkdoc-mkdb itself, when reading the input.
If the user actually used entities then they would have been
double-escaped and will still appear, verbatim, in the output.
Stop warning about something that isn't there.
gtkdoc-mkdb.in | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 11d3f59..ac31226 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -5245,19 +5245,7 @@ sub ReplaceEntities {
# Expand entities in <programlisting> even inside CDATA since
# we changed the definition of |[ to add CDATA
for ($i = 0; $i <= $#entities; $i++) {
- if ($text =~ s/$entities[$i][0]/$entities[$i][1]/g) {
- # don't warn about * since it is expected to be present
- # for C-style comments
- if ($entities[$i][0] ne "*") {
- $warn .= "$entities[$i][0] ";
- }
- }
- }
-
- if ($warn ne "") {
- chomp $warn;
- &LogWarning (&GetSymbolSourceFile ($symbol), &GetSymbolSourceLine($symbol),
- "Deprecated entities found in documentation for $symbol: $warn");
+ $text =~ s/$entities[$i][0]/$entities[$i][1]/g;
}
return $text;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]