mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Warn about missing ':' in reader
This commit is contained in:
@@ -226,11 +226,16 @@ void Reader::readLine(bool in_string) {
|
|||||||
}
|
}
|
||||||
key = canonical_name_form(trim(key));
|
key = canonical_name_form(trim(key));
|
||||||
if (pos == String::npos) {
|
if (pos == String::npos) {
|
||||||
|
if (!ignore_invalid && !in_string) {
|
||||||
|
warning(_("Missing ':' "), 0, false);
|
||||||
|
}
|
||||||
value.clear();
|
value.clear();
|
||||||
} else {
|
} else {
|
||||||
value = trim_left(substr(line, pos+1));
|
value = trim_left(substr(line, pos+1));
|
||||||
}
|
}
|
||||||
if (key.empty() && pos!=String::npos) key = _(" "); // we don't want an empty key if there was a colon
|
if (key.empty() && pos!=String::npos) {
|
||||||
|
key = _(" "); // we don't want an empty key if there was a colon
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reader::unknownKey() {
|
void Reader::unknownKey() {
|
||||||
|
|||||||
Reference in New Issue
Block a user