You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explain the problem.
Between releases 3.1.6 and 3.1.7, the generated CSS style for pre > code.sourceCode > span lost a display: inline-block rule, see this diff.
is retained in 3.1.7, which is meant to produce hanging indentation of wrapped source code lines in printed media. However, without the display: inline-block, this has the effect of indenting the entire source code by 5em, rather than just the second and further lines.
Reproducible with the following markdown source file:
Look at my code:
```tex
This source code line is short.
This hopelessly overlong source code line will be automatically wrapped by pandoc.
```
When this is converted to HTML with the pandoc (3.1.7 or higher) command
pandoc -t html -o hanging.html -s hanging.md
and viewed with media type print emulated, it looks like
Look at my code:
This source code line is short.
This hopelessly overlong source code line will be automatically
wrapped by pandoc.
Note the unwanted indentation of both source code lines.
See jgm/pandoc#7248 for an explanation of why this was removed
from the regular CSS, and see jgm/pandoc#9520 for an explanation
of the problems this causes in printed output.
Explain the problem.
Between releases 3.1.6 and 3.1.7, the generated CSS style for
pre > code.sourceCode > span
lost adisplay: inline-block
rule, see this diff.The print-specific rule
pandoc/test/lhs-test.html
Lines 180 to 183 in 104b3ba
is retained in 3.1.7, which is meant to produce hanging indentation of wrapped source code lines in printed media. However, without the
display: inline-block
, this has the effect of indenting the entire source code by 5em, rather than just the second and further lines.Reproducible with the following markdown source file:
When this is converted to HTML with the pandoc (3.1.7 or higher) command
and viewed with media type print emulated, it looks like
Note the unwanted indentation of both source code lines.
With pandoc 3.1.6 (where the CSS rule
was still present), it looked better:
The source code lines are not indented, but the second line is wrapped with hanging indentation.
The CSS rule
should be retained at least for
@media print
.Pandoc version?
Reproduced with
But the missing CSS rule
affects all versions from 3.1.7 onwards.
The text was updated successfully, but these errors were encountered: