mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
man: formate arguments properly
This commit is contained in:
parent
300b60722b
commit
b1d0d6d0c3
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user