summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--tools/pm/DocsParser.pm3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 69ac18fa..eafc3efd 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 49007931..aa46cdca 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"