Docs: Convert examples to |[ ]|

This commit is contained in:
Matthias Clasen
2014-01-31 21:56:33 -05:00
parent 4d12e0d66f
commit 17f51583a8
27 changed files with 346 additions and 442 deletions

View File

@@ -1203,8 +1203,7 @@ g_menu_item_new_submenu (const gchar *label,
* second with the "Cut", "Copy" and "Paste" items. The first and
* second menus would then be added as submenus of the third. In XML
* format, this would look something like the following:
*
* <informalexample><programlisting><![CDATA[
* |[
* <menu id='edit-menu'>
* <section>
* <item label='Undo'/>
@@ -1216,7 +1215,7 @@ g_menu_item_new_submenu (const gchar *label,
* <item label='Paste'/>
* </section>
* </menu>
* ]]></programlisting></informalexample>
* ]|
*
* The following example is exactly equivalent. It is more illustrative
* of the exact relationship between the menus and items (keeping in
@@ -1224,8 +1223,7 @@ g_menu_item_new_submenu (const gchar *label,
* containing one). The style of the second example is more verbose and
* difficult to read (and therefore not recommended except for the
* purpose of understanding what is really going on).
*
* <informalexample><programlisting><![CDATA[
* |[
* <menu id='edit-menu'>
* <item>
* <link name='section'>
@@ -1241,7 +1239,7 @@ g_menu_item_new_submenu (const gchar *label,
* </link>
* </item>
* </menu>
* ]]></programlisting></informalexample>
* ]|
*
* Returns: a new #GMenuItem
*