aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-07-09 19:02:15 -0400
committerJohn MacFarlane <[email protected]>2025-07-09 19:02:15 -0400
commit07e9ef87ccaad28ccbbbe144d08eb003053681e2 (patch)
tree18845c8e1afa07d77087f90f8ade257dfb1cb405
parentca2c82133f09c3093be2c8014378ddc15f899a0d (diff)
PDF: Use utf8ToText for LaTeX log messages.
-rw-r--r--src/Text/Pandoc/PDF.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs
index 22757f103..0e198b0bb 100644
--- a/src/Text/Pandoc/PDF.hs
+++ b/src/Text/Pandoc/PDF.hs
@@ -320,7 +320,7 @@ latexWarnings log' = foldM_ go Nothing (BC.lines log')
go (Just msg) ln
| ln == "" = do -- emit report and reset accumulator
report $ MakePDFWarning $ render (Just 60) $
- hsep $ map literal $ T.words $ UTF8.toText $ BC.toStrict msg
+ hsep $ map literal $ T.words $ utf8ToText msg
pure Nothing
| otherwise = pure $ Just (msg <> ln)