aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pandoc.cabal2
-rw-r--r--tests/Tests/Readers/Docx.hs4
-rw-r--r--tests/docx.already_auto_ident.docxbin0 -> 8463 bytes
-rw-r--r--tests/docx.already_auto_ident.native2
4 files changed, 8 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index d5e278adc..7b9c8b2ea 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -188,6 +188,8 @@ Extra-Source-Files:
tests/fb2.math.fb2,
tests/fb2.test-small.png,
tests/fb2.test.jpg,
+ tests/docx.already_auto_ident.native,
+ tests/docx.already_auto_ident.docx,
tests/docx.block_quotes.docx,
tests/docx.block_quotes_parse_indent.native,
tests/docx.headers.docx,
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs
index a379bbf23..7b737f95a 100644
--- a/tests/Tests/Readers/Docx.hs
+++ b/tests/Tests/Readers/Docx.hs
@@ -97,6 +97,10 @@ tests = [ testGroup "inlines"
"docx.headers.docx"
"docx.headers.native"
, testCompare
+ "headers already having auto identifiers"
+ "docx.already_auto_ident.docx"
+ "docx.already_auto_ident.native"
+ , testCompare
"lists"
"docx.lists.docx"
"docx.lists.native"
diff --git a/tests/docx.already_auto_ident.docx b/tests/docx.already_auto_ident.docx
new file mode 100644
index 000000000..ec2b348d7
--- /dev/null
+++ b/tests/docx.already_auto_ident.docx
Binary files differ
diff --git a/tests/docx.already_auto_ident.native b/tests/docx.already_auto_ident.native
new file mode 100644
index 000000000..054bfe34a
--- /dev/null
+++ b/tests/docx.already_auto_ident.native
@@ -0,0 +1,2 @@
+[Header 1 ("anchor-header",[],[]) [Str "Anchor",Space,Str "Header"]
+,Para [Str "A",Space,Link [Str "link"] ("#anchor-header","")]]