mort666-pricetag 0.1.4 → 0.1.5
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 +7 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
@@ -62,6 +62,8 @@ module PriceTag
|
|
62
62
|
"#{node.name}. #{node.text}"
|
63
63
|
when :li
|
64
64
|
"#{(node.parent.name == "ol" ? "#" : "*") * indentation_level_for_list_item(node)} #{node.text}"
|
65
|
+
when :td
|
66
|
+
"|#{node.text}|"
|
65
67
|
when :blockquote
|
66
68
|
"bq. #{node.text}"
|
67
69
|
when :a
|
@@ -92,8 +94,12 @@ module PriceTag
|
|
92
94
|
when :tt
|
93
95
|
"@#{node.text}@"
|
94
96
|
when :br
|
97
|
+
" \n"
|
98
|
+
when :table
|
99
|
+
"\n#{node.text}\n"
|
100
|
+
when :tr
|
95
101
|
"#{node.text}\n"
|
96
|
-
when :p, :ul, :ol
|
102
|
+
when :p, :ul, :ol,
|
97
103
|
node.text
|
98
104
|
else
|
99
105
|
CGI.unescapeHTML(node.to_s)
|