From: Matthijs Kooijman Date: Wed, 17 Mar 2010 13:56:09 +0000 (+0100) Subject: Make parseini properly handle line continuations. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=commitdiff_plain;h=fba2c87657169dd0e0262659c22824602dc439cb;hp=1cd91839c360931fc97bdef0b31d7887218d00ed Make parseini properly handle line continuations. Previously, once it had found a line continuation backslash, it would include all subsequent lines, even those after the last line continuation backslash. --- diff --git a/lib/parseini.in b/lib/parseini.in index 2f2124c..a6282dc 100644 --- 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) {