[gtk-doc] Put examples in CDATA
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Put examples in CDATA
- Date: Wed, 29 Jan 2014 16:31:18 +0000 (UTC)
commit c4d09c7c95c45a1226e83f5ddd7d0f4ce2b1a1a9
Author: William Jon McCann <william jon mccann gmail com>
Date: Mon Jan 27 13:42:42 2014 -0500
Put examples in CDATA
https://bugzilla.gnome.org/show_bug.cgi?id=723118
gtkdoc-mkdb.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 67e8c37..a08234e 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -2761,8 +2761,8 @@ sub ExpandAbbreviations {
# Convert "|[" and "]|" into the start and end of program listing examples.
# FIXME: we like to have a way to specify parameters e.g. language="c"
- $text =~ s%\|\[%<informalexample><programlisting>%g;
- $text =~ s%\]\|%</programlisting></informalexample>%g;
+ $text =~ s%\|\[%<informalexample><programlisting><![CDATA[%g;
+ $text =~ s%\]\|%]]></programlisting></informalexample>%g;
# TODO: check for a xml comment after |[ and pick the language attribute from
# that
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]