[glibmm] gmmproc: Translate the <itemizedlist> tags in docs correctly.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc: Translate the <itemizedlist> tags in docs correctly.
- Date: Wed, 8 Feb 2012 20:55:38 +0000 (UTC)
commit cf50f142c0a3f3ae743f9150b232e144f6d273d5
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Wed Feb 8 15:54:55 2012 -0500
gmmproc: Translate the <itemizedlist> tags in docs correctly.
* tools/pm/DocsParser.pm (lookup_documentation): Typo.
(convert_tags_to_doxygen): Add substitutions to convert gtk-doc
<itemizedlist> tags to Doxygen format. For example, see
Gtk::ToolItem's "create-menu-proxy" and "toolbar-reconfigured"
signal docs.
ChangeLog | 10 ++++++++++
tools/pm/DocsParser.pm | 6 +++++-
2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5cfcbbb..b56db8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-02-08 Josà Alburquerque <jaalburquerque gmail com>
+
+ gmmproc: Translate the <itemizedlist> tags in docs correctly.
+
+ * tools/pm/DocsParser.pm (lookup_documentation): Typo.
+ (convert_tags_to_doxygen): Add substitutions to convert gtk-doc
+ <itemizedlist> tags to Doxygen format. For example, see
+ Gtk::ToolItem's "create-menu-proxy" and "toolbar-reconfigured"
+ signal docs.
+
2012-02-07 Josà Alburquerque <jaalburquerque gmail com>
docextract_to_xml.py: Add some HTML entity conversions.
diff --git a/tools/pm/DocsParser.pm b/tools/pm/DocsParser.pm
index 7df773b..f9ac265 100644
--- a/tools/pm/DocsParser.pm
+++ b/tools/pm/DocsParser.pm
@@ -269,7 +269,7 @@ sub lookup_documentation($$)
# Remove C example code.
my $example_removals =
- ($text =~ s"<informalexample>.*?</informalexample>"\[C example ellipted]"sg);
+ ($text =~ s"<informalexample>.*?</informalexample>"[C example ellipted]"sg);
$example_removals +=
($text =~ s"<programlisting>.*?</programlisting>"\n[C example ellipted]"sg);
$example_removals += ($text =~ s"\|\[.*?]\|"\n[C example ellipted]"sg);
@@ -399,6 +399,10 @@ sub convert_tags_to_doxygen($)
# Remove all para tags (from tmpl sgml files).
s"</?para>""g;
+ # Convert <itemizedlist> tags to Doxygen format.
+ s"</?itemizedlist>\n""g;
+ s"<listitem>(.*?)</listitem>"- $1"sg;
+
# Use our Doxygen @newin alias:
s/\bSince:\s*(\d+)\.(\d+)\b/\ newin{$1,$2}/g;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]