lib/isodoc/presentation_function/section.rb in isodoc-2.1.0 vs lib/isodoc/presentation_function/section.rb in isodoc-2.1.0.1

- old
+ new

@@ -58,10 +58,10 @@ t = elem.at(ns("./terms | ./definitions | ./references")) t.at(ns("./title")).remove t.xpath(ns(".//clause | .//terms | .//definitions | .//references")) .each do |c| tit = c.at(ns("./title")) or return - tit["depth"] = tit["depth"].to_i - 1 + tit["depth"] = tit["depth"].to_i - 1 unless tit["depth"] == "1" end end def term(docxml) docxml.xpath(ns("//term")).each do |f|