Applicable Configuration:
BYOND Version: 436.1012
Operating System: Windows Vista
Web Browser: Firefox
Game/Hub(s): (None)
Video Card (for graphics bugs): Non Graphical Bug

Descriptive Problem Summary:
When trying the /n for newline in a label, the text before the first /n will show without any other text.

Numbered Steps to Reproduce Problem:
Create Lable on a new interface
use the verb to test

Code Snippet (if applicable) to Reproduce Problem:
winset(src,"lable1","text=Test1 /n Test2")

Expected Results:
The label should show:

Actual Results:
Label shows:

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

When does the problem NOT occur?
When you dont put the /n in, but then it only shows on one line.

Use an output rather than a label

Sorry if it has been posted before, I did not see it posted.
This is not a bug. There are several problems in your code which explain the issue.

  • You need to use \n instead of /n.
  • When using complex text in winset(), you will need to url_encode the parameters. An easy way to do this is with list2params():
var/list/params = new
params["text"] = "Test1\nTest2"
winset(src, "label1", list2params(params))

Alternatively, you can just send the text directly to the label:

src << output("Test1\nTest2", "label1")

Hope that helps.

Lummox JR