Use negation in the multiline boolean of Target.hpp
This commit is contained in:
parent
75ca9376fa
commit
bc2f6938e3
|
@ -25,7 +25,7 @@ protected:
|
|||
occurence_position = view.find(interpolationString, occurence_position + interpolationString.size());
|
||||
}
|
||||
unsigned long newLine = view.find('\n');
|
||||
const bool multiline = newLine != string::npos && (strcmp(openMultiline, "") != 0 && strcmp(closeMultiline, openMultiline) != 0);
|
||||
const bool multiline = newLine != string::npos && not !strcmp(openMultiline, "") && not !strcmp(closeMultiline, openMultiline);
|
||||
if (not multiline) {
|
||||
while (newLine != string::npos) {
|
||||
view.erase(newLine, 1);
|
||||
|
|
Loading…
Reference in New Issue