projects
/
darcs-mirror-metainit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6240d86
)
Correctly record newlines for multi-line settings
author
urs
<urs@nerd2nerd.org>
Tue, 12 Jun 2007 19:39:50 +0000
(19:39 +0000)
committer
urs
<urs@nerd2nerd.org>
Tue, 12 Jun 2007 19:39:50 +0000
(19:39 +0000)
Parse.pm
patch
|
blob
|
history
diff --git
a/Parse.pm
b/Parse.pm
index
359ec1f
..
325c623
100644
(file)
--- a/
Parse.pm
+++ b/
Parse.pm
@@
-15,9
+15,10
@@
sub parse {
$lastkey = $key;
}
elsif ($lastkey) {
+ chomp;
s/^ //;
s/^\.$//;
- $parsed{$lastkey} .=
$_
;
+ $parsed{$lastkey} .=
"\n$_"
;
} else {
die "Cannot parse $!";
}