From b3075e0fde60f580b86ebb4fffc8e92002211587 Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Sat, 19 Oct 2024 18:52:19 +1100 Subject: [PATCH] boilerplate copyright appended content processing: https://github.com/metanorma/metanorma-iso/issues/730 --- Gemfile.devel | 4 + lib/isodoc/iso/html/word_iso_intro-dis.html | 6 +- lib/isodoc/iso/html/word_iso_intro.html | 5 +- lib/isodoc/iso/word_cleanup.rb | 50 +++-- lib/metanorma/iso/boilerplate-fr.adoc | 4 + lib/metanorma/iso/boilerplate-ru.adoc | 3 + lib/metanorma/iso/boilerplate.adoc | 4 + spec/isodoc/postproc_spec.rb | 93 +++++--- spec/isodoc/word_dis_spec.rb | 226 +++++++++++++------- 9 files changed, 266 insertions(+), 129 deletions(-) create mode 100644 Gemfile.devel diff --git a/Gemfile.devel b/Gemfile.devel new file mode 100644 index 00000000..1cb46944 --- /dev/null +++ b/Gemfile.devel @@ -0,0 +1,4 @@ +gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "features/boilerplate-append" + + + diff --git a/lib/isodoc/iso/html/word_iso_intro-dis.html b/lib/isodoc/iso/html/word_iso_intro-dis.html index aade9f23..f2593287 100644 --- a/lib/isodoc/iso/html/word_iso_intro-dis.html +++ b/lib/isodoc/iso/html/word_iso_intro-dis.html @@ -1,7 +1,9 @@ {% if doctype == "Amendment" or doctype == "Technical Corrigendum" %} {% else %} -