Skip to content

Commit e87b38a

Browse files
committed
add ; to all props
1 parent 9d00736 commit e87b38a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/example.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ button
1414

1515
@media print
1616
body
17-
padding: 0
17+
padding: 0
18+
button
19+
border-radius: 0
20+
width: 100%

lib/compiler.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function(node){
3838
function block(node) {
3939
var props = node[1];
4040
++indents;
41-
var ret = props.map(visit).join(';\n');
41+
var ret = props.map(visit).join('\n');
4242
--indents;
4343
return ret;
4444
}
@@ -50,7 +50,7 @@ module.exports = function(node){
5050
function prop(node) {
5151
var prop = node[1];
5252
var val = node[2];
53-
return indent() + prop + ': ' + val;
53+
return indent() + prop + ': ' + val + ';';
5454
}
5555

5656
/**

0 commit comments

Comments
 (0)