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

Lineblocks in MS output should start with .LP instead .PP #5588

Closed
tkurtbond opened this issue Jun 15, 2019 · 2 comments
Closed

Lineblocks in MS output should start with .LP instead .PP #5588

tkurtbond opened this issue Jun 15, 2019 · 2 comments

Comments

@tkurtbond
Copy link

Lineblocks in MS output frequently (maybe always?) start with a .PP, resulting in the first line of the lineblock being indented, which seems against the purpose of the lineblock. Can a .LP always be output instead? That way the first line would not be indented.

@mb21
Copy link
Collaborator

mb21 commented Jun 16, 2019

Thank you for submitting a bug report. However, we cannot improve pandoc or help you unless you give us all of the following information:

  • the pandoc version (check using pandoc -v and try to reproduce the bug with the latest released version of pandoc, or even better: the development version or nightly build.)
  • the exact command line used
  • the exact input used
  • the output received
  • the output you expected instead

A small test case (just a few lines) is ideal. If your input is large, try to whittle it down to a minimum working example. (For binary input formats like docx, you should attach the minimum sample file.)

Finally, ask questions on pandoc-discuss and read the User's Guide.

@tkurtbond
Copy link
Author

pandoc 2.7.1
Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.7.7

$ pandoc -r rst -w ms -o lb.ms
This is a paragrpah, which will probably be output unindented.

| This is the first line of a lineblock,
| which will probably be indented,
| which is bad.
^D

produces

.LP
This is a paragrpah, which will probably be output unindented.
.PP
This is the first line of a lineblock,
.br
which will probably be indented,
.br
which is bad.

Notice that the lineblock begins with a .PP, resulting in an indented first line. It should use a .LP, which would result in a non-indented first line.

@jgm jgm added this to the 2.7.4 milestone Jun 21, 2019
@jgm jgm closed this as completed in 100624a Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants