diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,9 +1,14 @@
 # Changelog for skylighting-format-blaze-html
 
+## 0.1.1.2
+
+* Re-add `display: inline-block` to code line spans, but only
+  for print media. See jgm/pandoc#9520.
+
 ## 0.1.1.1
 
 * Remove `display: inline-block` from the code line spans.  This
-  caused odd size changes in iOS.  Closes #7248.
+  caused odd size changes in iOS.  Closes jgm/pandoc#7248.
 
 ## 0.1.1
 
diff --git a/skylighting-format-blaze-html.cabal b/skylighting-format-blaze-html.cabal
--- a/skylighting-format-blaze-html.cabal
+++ b/skylighting-format-blaze-html.cabal
@@ -1,5 +1,5 @@
 name:                skylighting-format-blaze-html
-version:             0.1.1.1
+version:             0.1.1.2
 synopsis:            HTML formatter for skylighting syntax highlighting library
 description:         This module allows tokens produced by skylighting-core
                      to be rendered as HTML.
diff --git a/src/Skylighting/Format/HTML.hs b/src/Skylighting/Format/HTML.hs
--- a/src/Skylighting/Format/HTML.hs
+++ b/src/Skylighting/Format/HTML.hs
@@ -205,7 +205,7 @@
           , "}"
           , "@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 {"
