1

If I create a flash.text.TextField using OpenFL for a JS target, none of my newline characters are showing up. The textfield instead has one long string on a single line.

I've tried changing .wordWrap and .multiline but they do nothing to change this behavior.

haxe 3.1.3 openfl-html5 1.4.2

4

1 回答 1

1

这是对此行为负责的文件。目前没有实现多行属性的处理,也没有"\n"处理。因此,您唯一的选择是自己转换文本,或实施该处理(并可能提交拉取请求以帮助他人)。

说到"\r",我认为它不会甚至不应该实现,因为运行时系统不是处理错误编码的地方。

于 2014-05-05T12:17:12.387 回答