mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
tools/css: Trim whitespace around CSS values.
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.informational-overlays .overlay-tabs .tab-switcher {
|
.informational-overlays .overlay-tabs .tab-switcher {
|
||||||
margin-left: 15px ;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.informational-overlays .overlay-tabs .exit {
|
.informational-overlays .overlay-tabs .exit {
|
||||||
|
|||||||
@@ -799,8 +799,8 @@ just a temporary hack.
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes rotate {
|
@keyframes rotate {
|
||||||
from { transform:rotate(0deg); }
|
from { transform: rotate(0deg); }
|
||||||
to { transform:rotate(359deg); }
|
to { transform: rotate(359deg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.messagebox-bottom {
|
.messagebox-bottom {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class ParserTestHappyPath(unittest.TestCase):
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
reformatted_css = '''
|
reformatted_css = '''
|
||||||
p { color: red ;}
|
p { color: red;}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
res = parse(my_css)
|
res = parse(my_css)
|
||||||
|
|||||||
Reference in New Issue
Block a user