Make parseini properly handle line continuations.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 17 Mar 2010 13:56:09 +0000 (14:56 +0100)
committerMatthijs 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

index 2f2124c49dd6137532302a7d11085e1d6c172bd3..a6282dc59f4717f94acbcb929ec2f6abfa352bf8 100644 (file)
@@ -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) {