mort666-pricetag 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/pricetag/processors/textile.rb +4 -2
- data/lib/pricetag/version.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
@@ -61,7 +61,7 @@ module PriceTag
|
|
61
61
|
when :h1, :h2, :h3, :h4, :h5, :h6
|
62
62
|
"#{node.name}. #{node.text}\n"
|
63
63
|
when :li
|
64
|
-
"#{(node.parent.name == "ol" ? "#" : "*") * indentation_level_for_list_item(node)} #{node.text}"
|
64
|
+
"\n#{(node.parent.name == "ol" ? "#" : "*") * indentation_level_for_list_item(node)} #{node.text}"
|
65
65
|
when :td
|
66
66
|
"|#{node.text}|"
|
67
67
|
when :blockquote
|
@@ -99,7 +99,9 @@ module PriceTag
|
|
99
99
|
"\n#{node.text}\n"
|
100
100
|
when :tr
|
101
101
|
"#{node.text}\n"
|
102
|
-
when :
|
102
|
+
when :ul, :ol
|
103
|
+
"#{node.text}\n\n"
|
104
|
+
when :p
|
103
105
|
node.text
|
104
106
|
else
|
105
107
|
CGI.unescapeHTML(node.to_s)
|
data/lib/pricetag/version.rb
CHANGED