lib/relaton_bib/bibxml_parser.rb in relaton-bib-1.11.4 vs lib/relaton_bib/bibxml_parser.rb in relaton-bib-1.11.5
- old
+ new
@@ -192,10 +192,10 @@
# @param reference [Nokogiri::XML::Element]
# @return [Array<RelatonBib::FormattedString>]
def abstracts(ref)
ref.xpath("./front/abstract").map do |a|
- c = a.children.to_s.gsub(/\s*(<\/?)t(>)\s*/, '\1p\2')
+ c = a.inner_html.gsub(/\s*(<\/?)t(>)\s*/, '\1p\2')
.gsub(/[\t\n]/, " ").squeeze " "
FormattedString.new(content: c, language: language(ref), script: "Latn",
format: "text/html")
end
end