about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-12-07 16:38:29 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-12-07 16:38:29 +0100
commitb1d0d6d0c35cdef01dcc07c914ec8a2a42a32586 (patch)
treeba9df0114de9bae49502d94ba6737f270bbc9813
parent300b60722ba75beefc9f77ffece5ebbf4f8240b8 (diff)
downloadprofani-tty-b1d0d6d0c35cdef01dcc07c914ec8a2a42a32586.tar.gz
man: formate arguments properly
-rw-r--r--src/command/cmd_defs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index e12fdb8a..4ea9d107 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -2876,9 +2876,8 @@ command_mangen(void)
         if (pcmd->help.args[0][0] != NULL) {
             fputs("\n.SH ARGUMENTS\n", manpage);
             for (i = 0; pcmd->help.args[i][0] != NULL; i++) {
-                fprintf(manpage, "%s\n", pcmd->help.args[i][0]);
-                fprintf(manpage, "%s\n", pcmd->help.args[i][1]);
-                fputs("\n.BR\n", manpage);
+                fprintf(manpage, ".PP\n%s\n", pcmd->help.args[i][0]);
+                fprintf(manpage, ".RS 4\n%s\n.RE\n", pcmd->help.args[i][1]);
             }
         }