aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)