aboutsummaryrefslogtreecommitdiff
path: root/tests/docx
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-12-08 06:57:38 -0500
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-12-08 07:01:01 -0500
commit8ced8cbc6e03212f7a9bd871d74ba0e2622c6233 (patch)
treec4091c32f5fb72d32739b949554b683020689e1e /tests/docx
parenta09f60180f05006bee48dac78148a30ab44f61ab (diff)
downloadpandoc-8ced8cbc6e03212f7a9bd871d74ba0e2622c6233.tar.gz
Docx reader: Ensure one-row tables don't have header.
Tables in MS Word are set by default to have special first-row formatting, which pandoc uses to determine whether or not they have a header. This means that one-row tables will, by default, have only a header -- which we imagine is not what people want. This change ensures that a one-row table is not understood to be a header only. Note that this means that it is impossible to produce a header-only table from docx, even though it is legal pandoc. But we believe that in nearly all cases, it will be an accidental (and unwelcome) result Closes #3285.
Diffstat (limited to 'tests/docx')
-rw-r--r--tests/docx/table_one_row.docxbin0 -> 25251 bytes
-rw-r--r--tests/docx/table_one_row.native5
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/docx/table_one_row.docx b/tests/docx/table_one_row.docx
new file mode 100644
index 000000000..f7e0ebe43
--- /dev/null
+++ b/tests/docx/table_one_row.docx
Binary files differ
diff --git a/tests/docx/table_one_row.native b/tests/docx/table_one_row.native
new file mode 100644
index 000000000..bd1bf8145
--- /dev/null
+++ b/tests/docx/table_one_row.native
@@ -0,0 +1,5 @@
+[Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
+ []
+ [[[Plain [Str "One"]]
+ ,[Plain [Str "Row"]]
+ ,[Plain [Str "Table"]]]]]