From 07e9ef87ccaad28ccbbbe144d08eb003053681e2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 9 Jul 2025 19:02:15 -0400 Subject: PDF: Use utf8ToText for LaTeX log messages. --- src/Text/Pandoc/PDF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3