diff options
author | Ryan Lortie <desrt@desrt.ca> | 2015-03-12 15:42:48 -0400 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2015-03-13 11:02:14 +0100 |
commit | 8d2d322adb9038bc2b83b500c5e1c637796552f8 (patch) | |
tree | 88486b36bcbfb817fcae32f6145dbc9e5cbd7751 | |
parent | 545a70ce4bc0c83748a8f580dd8e12b3ca631209 (diff) | |
download | gtk-doc-8d2d322adb9038bc2b83b500c5e1c637796552f8.tar.gz |
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.
https://bugzilla.gnome.org/show_bug.cgi?id=746121
-rwxr-xr-x | gtkdoc-mkdb.in | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in index 0f1139e..a69cb7d 100755 --- a/gtkdoc-mkdb.in +++ b/gtkdoc-mkdb.in @@ -5240,19 +5240,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; |