[gtk-doc] Don't put property flags into the preformated section
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Don't put property flags into the preformated section
- Date: Wed, 12 Feb 2014 20:29:26 +0000 (UTC)
commit f7d0f76d16aa130989f354a3c2669da5c0aeee2e
Author: William Jon McCann <william jon mccann gmail com>
Date: Wed Feb 12 14:08:17 2014 -0500
Don't put property flags into the preformated section
This forces the docs to be quite wide in some cases.
gtkdoc-mkdb.in | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 4b461d7..b362792 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -3765,7 +3765,6 @@ sub GetArgs {
}
my $pad1 = " " x (24 - length ($name));
- my $pad2 = " " x (20 - length ($type));
my $arg_synop = "<row><entry role=\"property_type\">$type_output</entry><entry
role=\"property_name\"><link linkend=\"$id\">$name</link></entry><entry
role=\"property_flags\">$flags_string</entry></row>\n";
my $arg_desc = "<refsect2 id=\"$id\" role=\"property\"><title>The <literal>“$name”</literal>
$kind</title>\n";
@@ -3773,7 +3772,11 @@ sub GetArgs {
$arg_desc .= "\n";
$arg_desc .= OutputSymbolExtraLinks($symbol);
- $arg_desc .= "<programlisting> “$name”$pad1 $type_output $pad2 :
$flags_string</programlisting>\n";
+ $arg_desc .= "<programlisting> “$name”$pad1 $type_output</programlisting>\n";
+ if ($flags_string) {
+ $arg_desc .= "<para>Flags: $flags_string</para>\n";
+ }
+
$arg_desc .= &MakeDeprecationNote($symbol);
$arg_desc .= $blurb;
if ($range ne "") {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]