Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

man reader: indentation is lost for definitions spanning multiple paragraphs #9201

Closed
17dec opened this issue Nov 19, 2023 · 0 comments
Closed
Labels

Comments

@17dec
Copy link

17dec commented Nov 19, 2023

Best shown with a minimal example:

$ cat test.man
.TH "EXAMPLE" "1"
.SH "OPTIONS"
.TP 8n
\fB\-\-help\fR
This is line one.
.sp
This is line two.
$ pandoc test.man -f man -t markdown
# OPTIONS

**\--help**

:   This is line one.

This is line two.

The second line is considered a separate paragraph from the definition list, but it should still be part of the definition.

Example as rendered by mandoc(1), which has the second line properly indented:

$ mandoc ./test.man -T ascii
EXAMPLE(1)                  General Commands Manual                 EXAMPLE(1)

OPTIONS
       --help  This is line one.

               This is line two.

                                                                    EXAMPLE(1)

Using pandoc 3.1.9, but can also reproduce on try pandoc.

@17dec 17dec added the bug label Nov 19, 2023
@jgm jgm closed this as completed in 49e64c1 Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant