[gtk-doc] gtkdoc-mkdb: don't warn on 'deprecated entities'
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] gtkdoc-mkdb: don't warn on 'deprecated entities'
- Date: Fri, 13 Mar 2015 10:02:41 +0000 (UTC)
commit 8d2d322adb9038bc2b83b500c5e1c637796552f8
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.
https://bugzilla.gnome.org/show_bug.cgi?id=746121
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]