From f54bbcd363a5fe5993a47864da7d1ba96f4028fa Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 22 Apr 2024 16:17:49 -0700 Subject: [PATCH] RTF reader: remove debugging trace left in by accident. --- src/Text/Pandoc/Readers/RTF.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Readers/RTF.hs b/src/Text/Pandoc/Readers/RTF.hs index 416eb08ce..4536d4e87 100644 --- a/src/Text/Pandoc/Readers/RTF.hs +++ b/src/Text/Pandoc/Readers/RTF.hs @@ -40,7 +40,7 @@ import Safe (lastMay, initSafe, headDef) import Data.Encoding (decodeLazyByteStringExplicit) import Data.Encoding.CP932 (CP932) -import Debug.Trace +-- import Debug.Trace -- TODO: -- [ ] more complex table features @@ -959,7 +959,7 @@ processFontTable = snd . foldl' go (0, mempty) ansiWords :: Maybe Int -> [Word8] -> [Char] ansiWords mbCodePage ws = - case traceShowId mbCodePage of + case mbCodePage of Just 932 -> case decodeLazyByteStringExplicit (undefined :: CP932) (BL.pack ws) of Left _ -> "\xFFFD"