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.
- data/lib/parser.rb +4 -0
- 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?
|