ID:2537515
 
Resolved
In some situations, a closing </center> tag did not work properly in output.
BYOND Version:513.1506
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Chrome 79.0.3945.117
Applies to:Dream Seeker
Status: Resolved (513.1507)

This issue has been resolved.
Descriptive Problem Summary:
After you send a message to an output with the center tag, CLOSED PROPERLY, all further messages will be centered aswell, until you send a centered message that is not closed, then, future messages without the tag will not be centered.

Here is a screenshot:
https://gyazo.com/2c3357b81ed1550a205e058a928398b8

Numbered Steps to Reproduce Problem:
Send a message to an output, without any alignment tags, just to show it's working.
Send a message with the center tag, PROPERLY CLOSED.
Send a message without any alignment tags, see that it's centered anyway.
Send a message with the center tag, NOT CLOSING IT.
Send a message without any alignment tags, see that it's not centered anymore????

Code Snippet (if applicable) to Reproduce Problem:
src<<output("bla 1")//not centered (correct)
src<<output("<center>center bug</center>")//centered (correct)
src<<output("bla 2")//centered (incorrect)
src<<output("<center>stop center bug")//centered (correct)
src<<output("bla 3")//not centered (correct)


Expected Results:
Further messages outputted don't get centered just because one was and was properly closed.

Actual Results:
Every message after one was centered and properly closed get's centered aswell.

Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? YEs

When does the problem NOT occur? I don't know

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.) I don't know

Workarounds:

Not closing the tag.
I can't reproduce your issue with that code snippet. The third line is not centered.

If you have an environment that can produce this issue, please send me the code and I'll see if there's some contributing factor that might explain the discrepancy.
Lummox JR changed status to 'Unverified'
In response to Lummox JR
My bad Lummox, I misdiagnosed it. It needs a font tag, with it being closed aswell. Just replace the second line with
src<<output("<font size=3><center><font color=red><b>center bug<center></font>")


The total being:

        src<<output("bla 1")//not centered (correct)
src<<output("<font size=3><center><font color=red><b>center bug</center></font>")//centered (correct)
src<<output("bla 2")//centered (incorrect)
src<<output("<center>stop center bug")//centered (correct)
src<<output("bla 3")//not centered (correct)


100% reproduceable now.
Lummox JR resolved issue with message:
In some situations, a closing </center> tag did not work properly in output.