mort666-pricetag 0.1.9 → 0.1.10

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.9
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 :p, :ul, :ol
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)
@@ -1,3 +1,3 @@
1
1
  module PriceTag
2
- Version = VERSION = '0.1.9'
2
+ Version = VERSION = '0.1.10'
3
3
  end
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.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: