From 15682b2aeeac3a0f28601a12f281afe4c7bfbce4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 27 Feb 2024 19:48:54 -0800 Subject: [PATCH] Re-add `display: inline-block`, but only to print CSS. 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. --- skylighting-format-blaze-html/src/Skylighting/Format/HTML.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skylighting-format-blaze-html/src/Skylighting/Format/HTML.hs b/skylighting-format-blaze-html/src/Skylighting/Format/HTML.hs index b03204fb2..f98fed3a2 100644 --- a/skylighting-format-blaze-html/src/Skylighting/Format/HTML.hs +++ b/skylighting-format-blaze-html/src/Skylighting/Format/HTML.hs @@ -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 {"