mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix line splitting in white-space: pre
flows
The newline position from one line was getting used repeatedly, causing extra "phantom" newlines in the following lines. Fixes #3413.
This commit is contained in:
parent
5e5f77a354
commit
f35941d91d
4 changed files with 31 additions and 1 deletions
|
@ -499,7 +499,7 @@ impl LineBreaker {
|
|||
debug!("LineBreaker: Deferring the fragment to the inline_end of the new-line \
|
||||
character to the line.");
|
||||
let mut inline_end = split_fragment(inline_end);
|
||||
inline_end.new_line_pos = in_fragment.new_line_pos.clone();
|
||||
inline_end.new_line_pos.remove(0);
|
||||
self.work_list.push_front(inline_end);
|
||||
}
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue