projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cd9183
)
Make parseini properly handle line continuations.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 17 Mar 2010 13:56:09 +0000
(14:56 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 17 Mar 2010 13:56:09 +0000
(14:56 +0100)
Previously, once it had found a line continuation backslash, it would
include all subsequent lines, even those after the last line
continuation backslash.
lib/parseini.in
patch
|
blob
|
history
diff --git
a/lib/parseini.in
b/lib/parseini.in
index 2f2124c49dd6137532302a7d11085e1d6c172bd3..a6282dc59f4717f94acbcb929ec2f6abfa352bf8 100644
(file)
--- a/
lib/parseini.in
+++ b/
lib/parseini.in
@@
-92,7
+92,9
@@
END {
if (v ~ /\\$/) {
v = substr(v, 1, length(v)-1)
sub(/[ \r\t]+$/, "", v)
- }
+ } else {
+ continueline = 0
+ }
if (v) value[nvalue++] = v
}
else if (v ~ MATCH) {