Auto merge of #19581 - emilio:grid-line-serialize, r=canaltinova

style: Fix grid line serialization to avoid redundant spacing.

This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1425227.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19581)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-12-16 09:13:48 -06:00 committed by GitHub
commit a31fd24ce9

View file

@ -59,12 +59,16 @@ where
} }
if let Some(ref i) = self.line_num { if let Some(ref i) = self.line_num {
dest.write_str(" ")?; if self.is_span {
dest.write_str(" ")?;
}
i.to_css(dest)?; i.to_css(dest)?;
} }
if let Some(ref s) = self.ident { if let Some(ref s) = self.ident {
dest.write_str(" ")?; if self.is_span || self.line_num.is_some() {
dest.write_str(" ")?;
}
s.to_css(dest)?; s.to_css(dest)?;
} }