Use negation in the multiline boolean of Target.hpp

This commit is contained in:
Username404 2021-08-31 14:47:13 +02:00
parent 75ca9376fa
commit bc2f6938e3
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -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);