mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-22 15:35:48 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
04205049c8
commit
6b1d44a701
@@ -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)
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user