-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Wrong list layout when only one argument is used #64
Comments
You're welcome!
Hmm. I'm unable to reproduce this using Ronn-NG 0.9.1 on macOS 10.14. Both forms have a newline for me.
Maybe there's a difference in our What do you get for |
Oh, looks like you are right:
```
cat test
.\" generated with Ronn-NG/v0.9.1
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
.TH "TEST" "" "December 2020" ""
.SH "NAME"
\fBtest\fR
.SH "COMMANDS"
.TP
\fB\-d\fR, \fB\-\-debug\fR
Show debug information\.
.TP
\fB\-d\fR
Show debug information\.
```
So it seems the man viewer is doing something there. Sorry for the noise
then. :)
…On 04.12.2020 14:23, Andrew Janke wrote:
> Thanks for ronn-ng, as writing manpages in markdown is very comfortable.
You're welcome!
> When I have only one argument in a list the list is not rendered as I expect it.
Hmm. I'm unable to reproduce this using Ronn-NG 0.9.1 on macOS 10.14. Both forms have a newline for me.
```
[ronn-list-layout] $ cat foo.ronn
## COMMANDS
* `-d`, `--debug`:
Show debug information.
* `-d`:
Show debug information.
[ronn-list-layout] $ ronn foo.ronn
roff: ./foo
html: ./foo.html +man
[ronn-list-layout] $ cat foo
.\" generated with Ronn-NG/v0.9.1
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
.TH "FOO" "" "December 2020" ""
.SH "NAME"
\fBfoo\fR
.SH "COMMANDS"
.IP "\[ci]" 4
\fB\-d\fR, \fB\-\-debug\fR:
.br
Show debug information\.
.IP "\[ci]" 4
\fB\-d\fR:
.br
Show debug information\.
.IP "" 0
[ronn-list-layout] $ man ./foo | cat
FOO() FOO()
NAME
foo
COMMANDS
O -d, --debug:
Show debug information.
O -d:
Show debug information.
December 2020 FOO()
[ronn-list-layout] $
```
Maybe there's a difference in our `man` or `roff` tools here, that's causing a difference in rendering downstream from `ronn`?
What do you get for `cat foo` if you do this same test?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#64 (comment)
|
Hmmm. Actually, that output you posted doesn't look quite right to me; there should be some |
Thanks for ronn-ng, as writing manpages in markdown is very comfortable.
System
Debian Bullseye (testing)
Issue
When I have only one argument in a list the list is not rendered as I expect it.
I would expect both to render the same but they are rendered differently:
It looks a bit weird if there is no linebreak before some descriptions.
The text was updated successfully, but these errors were encountered: