mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-06-01 04:53:29 -05:00
Don't edit newlines in strings
This commit is contained in:
parent
381eaeca3f
commit
3b44f9ce15
|
|
@ -1470,6 +1470,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
|
|||
if (input.IsAny('\r', '\n')) {
|
||||
input = ' '; // handle multiline pasting by just treating the newlines as standard whitespace.
|
||||
withinComment = false;
|
||||
if (element.Format is PCS || element.Format is ErrorPCS) return; // exit early: newlines within strings are ignored, because they're escaped.
|
||||
}
|
||||
|
||||
if (element.Format is UnderEdit && input == ',') input = ' ';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user