lib/isodoc/function/utils.rb in isodoc-2.9.3 vs lib/isodoc/function/utils.rb in isodoc-2.9.4
- old
+ new
@@ -212,10 +212,9 @@
LABELLED_ANCESTOR_ELEMENTS =
%w(example requirement recommendation permission
note table figure sourcecode).freeze
def labelled_ancestor(elem)
- #require "debug"; binding.b
#!elem.path.gsub(/\[\d+\]/, "").split(%r{/})[1..-1]
!elem.ancestors.map(&:name)
.intersection(LABELLED_ANCESTOR_ELEMENTS).empty?
end