From da32c7c7238c59626f74d93113ae54a8d42317e3 Mon Sep 17 00:00:00 2001 From: Ivan Pelipenko Date: Sat, 23 May 2020 21:55:31 +0300 Subject: [PATCH] multiline fix --- pip | 2 +- qad/utils/qpiconfig.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pip b/pip index 21f8a03..6413e77 160000 --- a/pip +++ b/pip @@ -1 +1 @@ -Subproject commit 21f8a035d8ca050bd535a2fdc00058a9be2679f9 +Subproject commit 6413e7747e5843356f75265bf29b2e758aa57816 diff --git a/qad/utils/qpiconfig.cpp b/qad/utils/qpiconfig.cpp index e415072..1a8b05a 100644 --- a/qad/utils/qpiconfig.cpp +++ b/qad/utils/qpiconfig.cpp @@ -798,9 +798,9 @@ void QPIConfig::parse(QString content) { comm = ""; } - if (str.endsWith("\\")) { + if (str.endsWith(" \\")) { isMultiline = true; - str.chop(1); + str.chop(2); str = str.trimmed(); } else isMultiline = false; @@ -809,10 +809,11 @@ void QPIConfig::parse(QString content) { wasMultiline = false; if (ce) { ce->_value += str; - ce->_all += "\\\n" + all; + ce->_all += " \\\n" + all; } str.clear(); - } + } else + ce = 0; wasMultiline = isMultiline; ind = str.indexOf('=');