lib/isodoc/presentation_function/block.rb in isodoc-2.1.3 vs lib/isodoc/presentation_function/block.rb in isodoc-2.1.4
- old
+ new
@@ -18,11 +18,11 @@
unless name = node.at(ns("./#{elem}"))
(node.children.empty? and node.add_child("<#{elem}></#{elem}>")) or
node.children.first.previous = "<#{elem}></#{elem}>"
name = node.children.first
end
- if name.children.empty? then name.add_child(cleanup_entities(number))
- else (name.children.first.previous = "#{number}#{delim}")
+ if name.children.empty? then name.add_child(cleanup_entities(number.strip))
+ else (name.children.first.previous = "#{number.strip}#{delim}")
end
end
def sourcecode(docxml)
docxml.xpath(ns("//sourcecode")).each do |f|