fix: Loading of Intel Hex and Motorola SREC files with new lines inbetween
Fixes #906
This commit is contained in:
parent
b3556c7c91
commit
d928325fdf
@ -715,7 +715,6 @@
|
||||
"hex.builtin.view.information.region": "Analyzed region",
|
||||
"hex.builtin.view.information.plain_text": "This data is most likely plain text.",
|
||||
"hex.builtin.view.information.plain_text_percentage": "Plain text percentage",
|
||||
|
||||
"hex.builtin.view.patches.name": "Patches",
|
||||
"hex.builtin.view.patches.offset": "Offset",
|
||||
"hex.builtin.view.patches.orig": "Original value",
|
||||
|
@ -142,6 +142,9 @@ namespace hex::plugin::builtin {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
while (std::isspace(string[offset]) && offset < string.length())
|
||||
offset++;
|
||||
}
|
||||
|
||||
} catch (const std::runtime_error &e) {
|
||||
|
@ -154,6 +154,9 @@ namespace hex::plugin::builtin {
|
||||
endOfFile = true;
|
||||
break;
|
||||
}
|
||||
|
||||
while (std::isspace(string[offset]) && offset < string.length())
|
||||
offset++;
|
||||
}
|
||||
} catch (const std::runtime_error &e) {
|
||||
return { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user