Replace repeat' and take' with `replicate' once more

This commit is contained in:
Alexander Krotov 2017-05-12 11:55:45 +03:00 committed by Albert Krewinkel
parent c14c8a1a68
commit 2a291e437a

View file

@ -442,7 +442,7 @@ rawBlockContent blockType = try $ do
tabsToSpaces tabLen cs'@(c:cs) =
case c of
' ' -> ' ':tabsToSpaces tabLen cs
'\t' -> (take tabLen $ repeat ' ') ++ tabsToSpaces tabLen cs
'\t' -> replicate tabLen ' ' ++ tabsToSpaces tabLen cs
_ -> cs'
commaEscaped :: String -> String