Commit a005e373 authored by Michael Witrant's avatar Michael Witrant

fixed multiple bold

parent 3c3456a1
......@@ -132,7 +132,7 @@ class AmendmentExtractor
text = element.text
style = paragraph_style
if text.present? and element.is_a? Nokogiri::XML::Element
if element.is_a? Nokogiri::XML::Element
style_name = element["text:style-name"]
style = style_weight(style_name) if style_name
end
......@@ -144,10 +144,12 @@ class AmendmentExtractor
result = []
last_style = nil
parts.each do |style, text|
next if text.empty?
if style == last_style
result.last[1] += text
else
result << [style, text]
last_style = style
end
end
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment