lib/isodoc/section.rb in isodoc-0.6.1 vs lib/isodoc/section.rb in isodoc-0.6.2
- old
+ new
@@ -101,11 +101,11 @@
def internal_external_terms_boilerplate(sources)
@internal_external_terms_boilerplate.gsub(/%/, sources)
end
- def term_defs_boilerplate(div, source, term)
+ def term_defs_boilerplate(div, source, term, preface)
if source.empty? && term.nil?
div << @no_terms_boilerplate
else
div << term_defs_boilerplate_cont(source, term)
end
@@ -136,10 +136,10 @@
f = isoxml.at(ns(TERM_CLAUSE)) or return num
out.div **attr_code(id: f["id"]) do |div|
num = num + 1
clause_name("#{num}.", terms_defs_title(f), div, nil)
term_defs_boilerplate(div, isoxml.xpath(ns(".//termdocsource")),
- f.at(ns(".//term")))
+ f.at(ns(".//term")), f.at(ns("./p")))
f.elements.each do |e|
parse(e, div) unless %w{title source}.include? e.name
end
end
num