fix layout of text boxes being completely fucked
This commit is contained in:
parent
2b873a92a2
commit
d1ca07c297
|
@ -1870,14 +1870,15 @@ impl TextScript {
|
||||||
}
|
}
|
||||||
b'<' => {
|
b'<' => {
|
||||||
allow_next_event = false;
|
allow_next_event = false;
|
||||||
|
if char_buf.len() > 2 {
|
||||||
if !char_buf.is_empty() {
|
|
||||||
if let Some(&c) = char_buf.last() {
|
if let Some(&c) = char_buf.last() {
|
||||||
if c == b'\n' {
|
if c == b'\n' {
|
||||||
let _ = char_buf.pop();
|
let _ = char_buf.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if !char_buf.is_empty() {
|
||||||
TextScript::put_string(&mut char_buf, &mut bytecode, encoding);
|
TextScript::put_string(&mut char_buf, &mut bytecode, encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue