Commit aff651f9 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Fixed unit tests

parent 8912c7b1
......@@ -24,7 +24,6 @@ def _indented_block(selectors, inner, compress_whitespace=False, tab='\t'):
lbracket = '{'
rbracket = '}'
else:
# TODO: use this?: comma = ',\n'
comma = ', '
lbracket = ' {'
rbracket = '\n}'
......@@ -53,7 +52,7 @@ def generate_block(selectors, properties, compress_whitespace=False,
for name, value in properties]
inner = ';'.join(properties)
if not compress_whitespace:
if not compress_whitespace and len(inner):
inner += ';'
return _indented_block(selectors, inner,
......
......@@ -32,8 +32,7 @@ div {
selectors = ['div', 'p']
properties = [('color', '#000')]
self.assertGenerates(selectors, properties, '''
div,
p {
div, p {
color: #000;
}''')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment