From fba2c87657169dd0e0262659c22824602dc439cb Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 17 Mar 2010 14:56:09 +0100 Subject: [PATCH] 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. --- lib/parseini.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.30.2