zetaben-Html2Feedbooks 1.0.4 → 1.0.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.
Files changed (2) hide show
  1. data/lib/parser.rb +4 -0
  2. metadata +1 -1
data/lib/parser.rb CHANGED
@@ -158,7 +158,11 @@ module HTML2FB
158
158
  end
159
159
 
160
160
  def open_section(obj,lvl,el)
161
+ if @content=='body'
162
+ tmp=el.preceding[0..-1]
163
+ else
161
164
  tmp=el.root.search(@content...(el.xpath))[1..-1]
165
+ end
162
166
  unless tmp.blank?
163
167
  tmph=tmp.to_html
164
168
  unless tmph.blank?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zetaben-Html2Feedbooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit Larroque