summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-06-25 05:04:27 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-06-25 05:04:27 +0000
commitf3683b4e5ff7416d3354c237933ff6cb65b8b74e (patch)
tree572aa775f1273dd1e3ba7531e3e035405bdfbc80
parenta85d922d4078b5a54c391759e79e9da6b0fb316f (diff)
Of course some of them were 8 space tabs.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788261 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/couchdb/couch_config.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/couchdb/couch_config.erl b/src/couchdb/couch_config.erl
index 3270b3fd..5b93c4ec 100644
--- a/src/couchdb/couch_config.erl
+++ b/src/couchdb/couch_config.erl
@@ -193,10 +193,11 @@ parse_ini_file(IniFile) ->
{AccSectionName, AccValues};
{ok, [ValueName|LineValues]} -> % yeehaw, got a line!
RemainingLine = couch_util:implode(LineValues, "="),
+ % removes comments
{ok, [LineValue | _Rest]} =
- regexp:split(RemainingLine, " ;|\t;"), % removes comments
+ regexp:split(RemainingLine, " ;|\t;"),
{AccSectionName,
- [{{AccSectionName, ValueName}, LineValue} | AccValues]}
+ [{{AccSectionName, ValueName}, LineValue} | AccValues]}
end
end
end, {"", []}, Lines),