diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-12-07 16:38:29 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-12-07 16:38:29 +0100 |
commit | b1d0d6d0c35cdef01dcc07c914ec8a2a42a32586 (patch) | |
tree | ba9df0114de9bae49502d94ba6737f270bbc9813 | |
parent | 300b60722ba75beefc9f77ffece5ebbf4f8240b8 (diff) | |
download | profani-tty-b1d0d6d0c35cdef01dcc07c914ec8a2a42a32586.tar.gz |
man: formate arguments properly
-rw-r--r-- | src/command/cmd_defs.c | 5 |
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]); } } |