prawn-svg 0.9.1.7 → 0.9.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/prawn/svg/parser.rb +2 -2
- metadata +3 -3
data/lib/prawn/svg/parser.rb
CHANGED
|
@@ -220,7 +220,7 @@ module Prawn
|
|
|
220
220
|
def load_css_styles(element)
|
|
221
221
|
if @css_parser
|
|
222
222
|
data = if element.cdatas.any?
|
|
223
|
-
element.cdatas.collect
|
|
223
|
+
element.cdatas.collect {|d| d.to_s}.join
|
|
224
224
|
else
|
|
225
225
|
element.text
|
|
226
226
|
end
|
|
@@ -337,7 +337,7 @@ module Prawn
|
|
|
337
337
|
def parse_css_method_calls(string)
|
|
338
338
|
string.scan(/\s*(\w+)\(([^)]+)\)\s*/).collect do |call|
|
|
339
339
|
name, argument_string = call
|
|
340
|
-
arguments = argument_string.split(",").collect
|
|
340
|
+
arguments = argument_string.split(",").collect {|s| s.strip}
|
|
341
341
|
[name, arguments]
|
|
342
342
|
end
|
|
343
343
|
end
|
metadata
CHANGED
|
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
|
6
6
|
- 0
|
|
7
7
|
- 9
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.9.1.
|
|
9
|
+
- 8
|
|
10
|
+
version: 0.9.1.8
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Roger Nesbitt
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-05-
|
|
18
|
+
date: 2010-05-09 00:00:00 +12:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|