diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2014-09-18 14:20:08 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2014-09-18 14:25:12 -0700 |
commit | f35941d91d37db583e3c39d9b371ecd4f7850512 (patch) | |
tree | 48a5b9d17937b6e3fe98acbfe8ef98f962e018b6 /components/layout/inline.rs | |
parent | 5e5f77a354500103247359e63f1f4147919ade62 (diff) | |
download | servo-f35941d91d37db583e3c39d9b371ecd4f7850512.tar.gz servo-f35941d91d37db583e3c39d9b371ecd4f7850512.zip |
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.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 8c86b8fae93..a888378bf19 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -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 |