From 954fb4cf3ed1e99d6b6b5bf057f9d7789eb19b78 Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Thu, 6 Feb 2020 00:45:57 +1100 Subject: [PATCH] refactor section names: https://github.com/metanorma/metanorma-iso/issues/313 --- lib/asciidoctor/iso/section.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/asciidoctor/iso/section.rb b/lib/asciidoctor/iso/section.rb index 093cac18..74fdd18d 100644 --- a/lib/asciidoctor/iso/section.rb +++ b/lib/asciidoctor/iso/section.rb @@ -12,17 +12,11 @@ def section(node) when "patent notice" then patent_notice_parse(xml, node) when "scope" then scope_parse(a, xml, node) when "normative references" then norm_ref_parse(a, xml, node) - when "terms and definitions", - "terms, definitions, symbols and abbreviated terms", - "terms, definitions, symbols and abbreviations", - "terms, definitions and symbols", - "terms, definitions and abbreviations", - "terms, definitions and abbreviated terms" + when "terms and definitions" @term_def = true term_def_parse(a, xml, node, true) @term_def = false - when "symbols and abbreviated terms", - "abbreviations", "abbreviated terms", "symbols" + when "symbols and abbreviated terms" symbols_parse(a, xml, node) when "bibliography" then bibliography_parse(a, xml, node) else