mirror of https://github.com/zulip/zulip.git
tools/css: Trim whitespace around CSS values.
This commit is contained in:
parent
2ffea94bd8
commit
1e5ec689b7
|
@ -366,7 +366,13 @@ class CssDeclaration(object):
|
||||||
res += self.pre_fluff
|
res += self.pre_fluff
|
||||||
res += self.css_property
|
res += self.css_property
|
||||||
res += ':'
|
res += ':'
|
||||||
res += self.css_value.text()
|
value_text = self.css_value.text()
|
||||||
|
if '\n' in value_text:
|
||||||
|
# gradient values can be multi-line
|
||||||
|
res += value_text.rstrip()
|
||||||
|
else:
|
||||||
|
res += ' '
|
||||||
|
res += value_text.strip()
|
||||||
res += ';'
|
res += ';'
|
||||||
res += self.post_fluff
|
res += self.post_fluff
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Reference in New Issue