From 95432d3f4e14688daba39ea1d65c8e4811f04ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Tue, 19 Dec 2023 00:43:25 +0000 Subject: test(docx): add workaround for mc:Ignorable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `make validate-docx-golden-tests` now passes Fixes https://github.com/jgm/pandoc/issues/9269 Signed-off-by: Edwin Török --- Makefile | 3 ++- wml.xsd.patch | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 wml.xsd.patch diff --git a/Makefile b/Makefile index 5d1be9ef8..2684d4284 100644 --- a/Makefile +++ b/Makefile @@ -238,7 +238,8 @@ update-website: ## update website and upload validate-docx-golden-tests: ## validate docx golden tests against schema which xmllint || ("xmllint is required" && exit 1) test -d ./docx-validator || \ - git clone https://github.com/devoidfury/docx-validator + (git clone https://github.com/devoidfury/docx-validator && \ + cd docx-validator && patch -p1 <../wml.xsd.patch) sh ./tools/validate-docx.sh test/docx/golden/*.docx .PHONY: validate-docx-golden-tests diff --git a/wml.xsd.patch b/wml.xsd.patch new file mode 100644 index 000000000..257cef083 --- /dev/null +++ b/wml.xsd.patch @@ -0,0 +1,36 @@ +diff --git a/schemas/ISO-IEC29500-4_2016/wml.xsd b/schemas/ISO-IEC29500-4_2016/wml.xsd +index 6fa33d9..e243504 100644 +--- a/schemas/ISO-IEC29500-4_2016/wml.xsd ++++ b/schemas/ISO-IEC29500-4_2016/wml.xsd +@@ -3044,6 +3044,7 @@ + + + ++ + + + +@@ -3194,6 +3195,7 @@ + + + ++ + + + +@@ -3285,6 +3287,7 @@ + + + ++ + + + +@@ -3348,6 +3351,7 @@ + + + ++ + + + -- cgit v1.2.3