Title
I need this because I feed text to my maptext, which auto adds it in a new line with the \n command. If the text that I'm feeding it has a center tag, it skips one extra line.
If this is intended behaviour please move this to Feature Requests and tell me if it's feasible.
Code Snippet (if applicable) to Reproduce Problem:
maptext="bla\n<center>ble</center>\nblo"
Expected Results:
bla
ble
blo
Actual Results:
bla
ble
blo
Does the problem occur:
Every time? Or how often? Y
In other games? Y
In other user accounts? Y
On other computers? Y
When does the problem NOT occur? Nva
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) Unicode update
Workarounds: None that I know of
This is our test HTML:
"bla<br><center>ble</center><br>blo"
This is our result in chrome, edge, firefox, and internet explorer:
When we spoke earlier, I was incorrect that this was not a bug. In fact, BYOND's maptext linebreaks are too aggressive. Every other modern HTML renderer will not add the first line break provided there is no character on the current line after the line break.
However, your expectations are incorrect, and you could work around this simply by removing the unnecessary line breaks.
But yes, one of the two line feeds you are seeing is incorrect, but only one of them.