layout: Make the output of flow tree dumping easier to read when there

are many fragments.
This commit is contained in:
Patrick Walton 2015-07-06 13:56:59 -07:00
parent 352ad53775
commit c84368b703
2 changed files with 20 additions and 3 deletions

View file

@ -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(())
}
}