What did you do?
I added colour to a train station name and deleted the string.
What happened?
I could name the station with an empty (no symbols shown) string.
What did you expect to happen instead?
There should be a warning that a station name cannot be empty
[wheybags] [0.17.4] Color format counts as string
Re: [wheybags] [0.17.4] Color format counts as string
Thanks for the report.
In the next version, you will be forced to close color tags, so to replicate this you would have to do something that makes no sense - start and end a color tag without putting any text in between, eg:
Whenever you use backspace, the string is cleaned up after the deletion, so eg if you had:
with your cursor after the a, then hit backspace, the empty color tag will be removed.
Disallowing this case would be awkward, as it would probably imply running the cleanup code after every insertion of text too.
The difference is, you can generate empty sections like this with backspace by doing something quite sensible and normal, but to make an empty section with insertion you kinda have to really try.
For that reason, I don't think it's worth it, so I will put this bug in "Won't fix" for now.
In the next version, you will be forced to close color tags, so to replicate this you would have to do something that makes no sense - start and end a color tag without putting any text in between, eg:
Code: Select all
[color=red][/color]
Code: Select all
123[color=red]a[/color]
Disallowing this case would be awkward, as it would probably imply running the cleanup code after every insertion of text too.
The difference is, you can generate empty sections like this with backspace by doing something quite sensible and normal, but to make an empty section with insertion you kinda have to really try.
For that reason, I don't think it's worth it, so I will put this bug in "Won't fix" for now.