summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_config_writer.erl
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-08-30 14:27:01 +0000
committerJan Lehnardt <jan@apache.org>2008-08-30 14:27:01 +0000
commit3751c13253370c72735fb070588fa8d99db5e81a (patch)
tree650691eddcc992946b87a1c7d4faf41fdfacc2b4 /src/couchdb/couch_config_writer.erl
parentbef662fcc96e7b578aac40154e7767de30e9a1c0 (diff)
- Rename configuration options and sections to allow for a nicer .ini file and HTTP API calls.
- Enable .ini parser to read variable assignments with spaces around the '='-sign. - Remove inadequate comment. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690513 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_config_writer.erl')
-rw-r--r--src/couchdb/couch_config_writer.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_config_writer.erl b/src/couchdb/couch_config_writer.erl
index 6a56c96e..561fd6c2 100644
--- a/src/couchdb/couch_config_writer.erl
+++ b/src/couchdb/couch_config_writer.erl
@@ -29,7 +29,7 @@
%% @doc Saves a Module/Key/Value triple to the ini file File::filename()
save_to_file({{Module, Variable}, Value}, File) ->
- ?LOG_DEBUG("saving to file '~s', Congif: '~p'", [File, {{Module, Variable}, Value}]),
+ ?LOG_DEBUG("saving to file '~s', Config: '~p'", [File, {{Module, Variable}, Value}]),
% open file and create a list of lines
{ok, Stream} = file:read_file(File),
@@ -84,7 +84,7 @@ save_loop({{Module, Variable}, Value}, [Line|Rest], OldCurrentModule, Contents,
case lists:member(Variable, DoneVariables) of
false ->
DoneVariables2 = [Variable|DoneVariables],
- Variable ++ "=" ++ Value ++ "\n" ++ Line;
+ Variable ++ " = " ++ Value ++ "\n" ++ Line;
true ->
DoneVariables2 = DoneVariables,
Line