summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-07-02 16:33:50 +0200
committerWerner Koch <wk@gnupg.org>2016-07-02 16:33:50 +0200
commit1a53a0ac4cc241a5c6d360d6259dd04afc09264c (patch)
treed027c0a567f7acb9595ed99b098aebb4e768776f /doc
parent467ccbb6062439eda9dce7cd991934d1a5491713 (diff)
downloadlibgpg-error-1a53a0ac4cc241a5c6d360d6259dd04afc09264c.tar.gz
yat2m: Fix table formatting.
* doc/yat2m.c (proc_texi_cmd): Use .TQ for @itemx. Print a .P at the end of a level 0 table. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/yat2m.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/yat2m.c b/doc/yat2m.c
index 7599081..9b76f19 100644
--- a/doc/yat2m.c
+++ b/doc/yat2m.c
@@ -746,7 +746,7 @@ proc_texi_cmd (FILE *fp, const char *command, const char *rest, size_t len,
{ "subsection", 6, "\n.SS " },
{ "chapheading", 0},
{ "item", 2, ".TP\n.B " },
- { "itemx", 2, ".TP\n.B " },
+ { "itemx", 2, ".TQ\n.B " },
{ "table", 3 },
{ "itemize", 3 },
{ "bullet", 0, "* " },
@@ -793,6 +793,8 @@ proc_texi_cmd (FILE *fp, const char *command, const char *rest, size_t len,
{
if ((*table_level)-- > 1)
fputs (".RE\n", fp);
+ else
+ fputs (".P\n", fp);
}
else if (n >= 7 && !memcmp (s, "example", 7)
&& (!n || s[7] == ' ' || s[7] == '\t' || s[7] == '\n'))