summaryrefslogtreecommitdiff
path: root/Command/Vicfg.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-03 23:29:37 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-03 23:29:37 -0400
commit792bb6a4b92ddff8719265ca05d0da3c541e76cf (patch)
tree96bdd715ad7adf1d6a07a43a5f49a9ecd2b61f9c /Command/Vicfg.hs
parent49e66508759e0f5dbdf9bdd145edb61d1819682d (diff)
tweak
Diffstat (limited to 'Command/Vicfg.hs')
-rw-r--r--Command/Vicfg.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Command/Vicfg.hs b/Command/Vicfg.hs
index a7090e190..d44967b28 100644
--- a/Command/Vicfg.hs
+++ b/Command/Vicfg.hs
@@ -146,10 +146,10 @@ parseCfg curcfg = go [] curcfg . lines
where
(setting, rest) = separate isSpace l
(repo, value) = separate (== '=') rest
- value' = dropWhile isSpace value
- repo' = reverse $ dropWhile isSpace $
- reverse $ dropWhile isSpace repo
-
+ value' = trimspace value
+ repo' = reverse $ trimspace $
+ reverse $ trimspace repo
+ trimspace = dropWhile isSpace
handle cfg u setting value
| setting == "trust" = case readTrustLevel value of