mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix white-space property(pre)
If html has empty line, it is not handled currently. Because pending line is empty in such case, flushing current line doesn't care empty line. For example, below html has two empty line(line 2 and line 4) <div> test1 test2 </div> To handle empty line, added empty box to pending line.
This commit is contained in:
parent
78e0545918
commit
765e1f2a36
2 changed files with 2 additions and 7 deletions
|
@ -327,10 +327,7 @@ impl LineboxScanner {
|
|||
(Some(left_box), None) => {
|
||||
self.push_box_to_line(left_box);
|
||||
}
|
||||
(None, Some(right_box)) => {
|
||||
self.work_list.push_front(right_box);
|
||||
}
|
||||
(None, None) => error!("LineboxScanner: This split case makes no sense!"),
|
||||
_ => error!("LineboxScanner: This split case makes no sense!"),
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue