Skip to content

Commit

Permalink
Re-add display: inline-block, but only to print CSS.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jgm committed Feb 28, 2024
1 parent bc6401c commit 15682b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ styleToCss f = unlines $
, "}"
, "@media print {"
, "pre > code.sourceCode { white-space: pre-wrap; }"
, "pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }"
, "pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }"
, "}"
]
linkspec = [ "@media screen {"
Expand Down

0 comments on commit 15682b2

Please sign in to comment.