[glib: 1/2] docs: Wrap a code example more tightly to reduce minimum page width
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] docs: Wrap a code example more tightly to reduce minimum page width
- Date: Thu, 3 Jun 2021 12:23:07 +0000 (UTC)
commit be24b0c622bcecbc5b2e8cd9d1bad9c513e23b43
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Jun 3 12:52:51 2021 +0100
docs: Wrap a code example more tightly to reduce minimum page width
Otherwise the page has a horizontal scrollbar in Devhelp on some
machines.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Fixes: #2414
docs/reference/glib/running.xml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/glib/running.xml b/docs/reference/glib/running.xml
index aaafddf1d..80a8da097 100644
--- a/docs/reference/glib/running.xml
+++ b/docs/reference/glib/running.xml
@@ -201,8 +201,11 @@ How to run and debug your GLib application
reproduced with <literal>G_SLICE=always-malloc</literal>, but will
be caught by <literal>G_SLICE=debug-blocks</literal> is as follows:
<programlisting>
- void *slist = g_slist_alloc (); /* void* gives up type-safety */
- g_list_free (slist); /* corruption: sizeof (GSList) != sizeof (GList) */
+ /* void* gives up type-safety */
+ void *slist = g_slist_alloc ();
+
+ /* corruption: sizeof (GSList) != sizeof (GList) */
+ g_list_free (slist);
</programlisting></para>
</listitem>
</varlistentry>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]