css2stylus 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/css2stylus +1 -1
- data/lib/css2stylus.rb +1 -1
- metadata +1 -1
data/bin/css2stylus
CHANGED
data/lib/css2stylus.rb
CHANGED
@@ -55,7 +55,7 @@ module Css2Stylus
|
|
55
55
|
@stylus = @stylus + ' ' * indent + element + "\n"
|
56
56
|
style = children.delete(:style)
|
57
57
|
if style
|
58
|
-
@stylus = @stylus + style.split(';').map { |s| s.strip }.reject { |s| s.empty? }.map { |s| ' ' * (indent + 2) + s.gsub(
|
58
|
+
@stylus = @stylus + style.split(';').map { |s| s.strip }.reject { |s| s.empty? }.map { |s| ' ' * (indent + 2) + s.gsub(/:(\s)*/, ' ') }.join("\n") + "\n"
|
59
59
|
end
|
60
60
|
render(children, indent + 2)
|
61
61
|
end
|