mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Make the output of flow tree dumping easier to read when there
are many fragments.
This commit is contained in:
parent
352ad53775
commit
c84368b703
2 changed files with 20 additions and 3 deletions
|
@ -689,7 +689,10 @@ pub struct InlineFragments {
|
|||
|
||||
impl fmt::Debug for InlineFragments {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{:?}", self.fragments)
|
||||
for fragment in self.fragments.iter() {
|
||||
try!(write!(f, "\n * {:?}", fragment))
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue