lib/asciidoctor/iso/cleanup.rb in metanorma-iso-1.3.9 vs lib/asciidoctor/iso/cleanup.rb in metanorma-iso-1.3.10

- old
+ new

@@ -99,13 +99,13 @@ "#{id&.text} :: #{title}" end def boilerplate_cleanup(xmldoc) super - initial_boilerplace(xmldoc) + initial_boilerplate(xmldoc) end - def initial_boilerplace(x) + def initial_boilerplate(x) return if x.at("//boilerplate") preface = x.at("//preface") || x.at("//sections") || x.at("//annex") || x.at("//references") || return preface.previous = boilerplate(x) end