mort666-pricetag 0.1.4 → 0.1.5

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mort666-pricetag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: