From 6b1d44a70195145ae76bfcdf96d671dd5968c5f4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 9 Apr 2026 13:45:15 +0000 Subject: [PATCH] Shared: avoid redundant T.pack in tabFilter Use the OverloadedStrings literal " " directly instead of T.pack " ", avoiding an unnecessary pack call on every tab. Co-Authored-By: Claude --- src/Text/Pandoc/Shared.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 5b3a620d3..8586cd78b 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -263,7 +263,7 @@ tabFilter tabStop = T.unlines . map go . T.lines in if T.null s2 then s1 else s1 <> T.replicate - (tabStop - (T.length s1 `mod` tabStop)) (T.pack " ") + (tabStop - (T.length s1 `mod` tabStop)) " " <> go (T.drop 1 s2) --