pandoc/tests/docx/tables.native
Jesse Rosenthal 60004cd518 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.)
2016-12-13 07:04:40 -05:00

36 lines
1.2 KiB
Text

[Header 2 ("a-table-with-and-without-a-header-row",[],[]) [Str "A",Space,Str "table,",Space,Str "with",Space,Str "and",Space,Str "without",Space,Str "a",Space,Str "header",Space,Str "row"]
,Table [] [AlignDefault,AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0,0.0]
[[Plain [Str "Name"]]
,[Plain [Str "Game"]]
,[Plain [Str "Fame"]]
,[Plain [Str "Blame"]]]
[[[Plain [Str "Lebron",Space,Str "James"]]
,[Plain [Str "Basketball"]]
,[Plain [Str "Very",Space,Str "High"]]
,[Plain [Str "Leaving",Space,Str "Cleveland"]]]
,[[Plain [Str "Ryan",Space,Str "Braun"]]
,[Plain [Str "Baseball"]]
,[Plain [Str "Moderate"]]
,[Plain [Str "Steroids"]]]
,[[Plain [Str "Russell",Space,Str "Wilson"]]
,[Plain [Str "Football"]]
,[Plain [Str "High"]]
,[Plain [Str "Tacky",Space,Str "uniform"]]]]
,Table [] [AlignDefault,AlignDefault] [0.0,0.0]
[[]
,[]]
[[[Plain [Str "Sinple"]]
,[Plain [Str "Table"]]]
,[[Plain [Str "Without"]]
,[Plain [Str "Header"]]]]
,Table [] [AlignDefault,AlignDefault] [0.0,0.0]
[[]
,[]]
[[[Para [Str "Simple"]
,Para [Str "Multiparagraph"]]
,[Para [Str "Table"]
,Para [Str "Full"]]]
,[[Para [Str "Of"]
,Para [Str "Paragraphs"]]
,[Para [Str "In",Space,Str "each"]
,Para [Str "Cell."]]]]]