[glibmm] gmmproc: Example Removal: Also remove code in </programlisting> tags.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc: Example Removal: Also remove code in </programlisting> tags.
- Date: Wed, 26 Oct 2011 23:04:11 +0000 (UTC)
commit 951034b8e63d0d0c71a2f8324e2d783dba6f1b5e
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Wed Oct 26 18:46:17 2011 -0400
gmmproc: Example Removal: Also remove code in </programlisting> tags.
* tools/pm/DocsParser.pm (lookup_documentation): Also remove code in
<programlisting>...</programlisting> tags.
ChangeLog | 7 +++++++
tools/pm/DocsParser.pm | 3 ++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 69ac18f..eafc3ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-26 Josà Alburquerque <jaalburqu svn gnome org>
+
+ gmmproc: Example Removal: Also remove code in </programlisting> tags.
+
+ * tools/pm/DocsParser.pm (lookup_documentation): Also remove code in
+ <programlisting>...</programlisting> tags.
+
2011-10-26 Murray Cumming <murrayc murrayc com>
Avoid use of deprecated API in tests and examples.
diff --git a/tools/pm/DocsParser.pm b/tools/pm/DocsParser.pm
index 4900793..aa46cdc 100644
--- a/tools/pm/DocsParser.pm
+++ b/tools/pm/DocsParser.pm
@@ -267,7 +267,8 @@ sub lookup_documentation($$)
# Remove C example code.
my $example_removals =
($text =~ s"<informalexample>.*?</informalexample>""sg);
-
+ $example_removals +=
+ ($text =~ s"<programlisting>.*?</programlisting>""sg);
$example_removals += ($text =~ s"\|\[.*?]\|""sg);
print STDERR "gmmproc: $functionName(): Example code discarded.\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]