aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/table_one_row.native
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-12-13 06:58:16 -0500
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-12-13 07:04:40 -0500
commit60004cd518f0fc72d45633dbb552f153bc3bfe96 (patch)
tree5947c32d0a9e081891b55b40ad553ffbdffb1de8 /tests/docx/table_one_row.native
parent7caaa5b2b65a8dd27c2bfceb580c8cdd71f37459 (diff)
downloadpandoc-60004cd518f0fc72d45633dbb552f153bc3bfe96.tar.gz
Docx reader: Empty header should be list of lists.
In the past, the docx reader wrote an empty header as an empty list. It should have the same width as a row (and be filled with empty cells). (Note that I've reordered the code here slightly to get rid of a call to `head`. It wasn't unsafe because it tested for null, but it was a bit of a smell.)
Diffstat (limited to 'tests/docx/table_one_row.native')
-rw-r--r--tests/docx/table_one_row.native4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/docx/table_one_row.native b/tests/docx/table_one_row.native
index bd1bf8145..1ea1b446c 100644
--- a/tests/docx/table_one_row.native
+++ b/tests/docx/table_one_row.native
@@ -1,5 +1,7 @@
[Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
- []
+ [[]
+ ,[]
+ ,[]]
[[[Plain [Str "One"]]
,[Plain [Str "Row"]]
,[Plain [Str "Table"]]]]]