fix: deactivate multiline if an error occurs

This commit is contained in:
Aurelien Brabant 2024-07-06 16:53:31 +02:00
parent e15cfdcd97
commit b386643974
No known key found for this signature in database
GPG key ID: 5F90C2579402FCFA

View file

@ -572,6 +572,7 @@ CParseResult CConfig::parseLine(std::string line, bool dynamic) {
bool isMultilineContinuation = lastChar == '\\' || lastChar == '>';
if (isMultilineContinuation && impl->multiline.active && impl->multiline.delimiter != lastChar) {
impl->multiline.active = false;
result.setError("Multiline continuation character mismatch. Make sure you are not mixing \\ and >");
return result;