lib/asciidoctor/itu/converter.rb in metanorma-itu-1.0.14 vs lib/asciidoctor/itu/converter.rb in metanorma-itu-1.0.15
- old
+ new
@@ -88,19 +88,10 @@
else
super
end
end
- def norm_ref_parse(attrs, xml, node)
- @norm_ref = true
- xml.references **attr_code(attrs) do |xml_section|
- xml_section.title { |t| t << "References" }
- xml_section << node.content
- end
- @norm_ref = false
- end
-
def term_def_title(toplevel, node)
return node.title unless toplevel
"Definitions"
end
@@ -128,11 +119,9 @@
external.next = "<p>#{@no_terms_boilerplate}</p>"
!internal and !external and
%w(term terms).include? div&.next_element&.name and
div.next = "<p>#{@term_def_boilerplate}</p>"
end
-
- NORM_REF = "//bibliography/references[title = 'References']".freeze
def load_yaml(lang, script)
y = if @i18nyaml then YAML.load_file(@i18nyaml)
elsif lang == "en"
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))