diff options
author | tv <tv@shackspace.de> | 2015-01-01 23:53:30 +0100 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-01-01 23:53:30 +0100 |
commit | 5d556b147a593f1b8c8127883055ad07ee347af9 (patch) | |
tree | 6697766faff1510492cb1c7f38c8fc1790838add /Utils.hs | |
parent | 67aa6764bfafabda51eb270e01aaf0fc638f380f (diff) |
colorize quoted lines
Diffstat (limited to 'Utils.hs')
-rw-r--r-- | Utils.hs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -21,3 +21,9 @@ padl n c s = if length s < n then padl n c (c:s) else s + +padr :: Int -> a -> [a] -> [a] +padr n c s = + if length s < n + then padr n c (s ++ [c]) + else s |