lib/prawn/svg/parser.rb in prawn-svg-0.9.1.7 vs lib/prawn/svg/parser.rb in prawn-svg-0.9.1.8
- old
+ new
@@ -218,11 +218,11 @@
end
def load_css_styles(element)
if @css_parser
data = if element.cdatas.any?
- element.cdatas.collect(&:to_s).join
+ element.cdatas.collect {|d| d.to_s}.join
else
element.text
end
@css_parser.add_block!(data)
@@ -335,10 +335,10 @@
end
def parse_css_method_calls(string)
string.scan(/\s*(\w+)\(([^)]+)\)\s*/).collect do |call|
name, argument_string = call
- arguments = argument_string.split(",").collect(&:strip)
+ arguments = argument_string.split(",").collect {|s| s.strip}
[name, arguments]
end
end
BUILT_IN_FONTS = ["Courier", "Helvetica", "Times-Roman", "Symbol", "ZapfDingbats"]