diff options
author | despresc <christian.j.j.despres@gmail.com> | 2020-04-04 16:35:42 -0400 |
---|---|---|
committer | despresc <christian.j.j.despres@gmail.com> | 2020-04-15 23:03:22 -0400 |
commit | 4e34d366df31937cdc69b6b366355f10a84c16b2 (patch) | |
tree | 844503b0f59439acaec5d2f8e2f016e2eb1d214c /test/docx/sdt_elements.native | |
parent | f8ce38975b547fe7fc8c12ccee3a940b35d8b9cf (diff) | |
download | pandoc-4e34d366df31937cdc69b6b366355f10a84c16b2.tar.gz |
Adapt to the newest Table type, fix some previous adaptation issues
- Writers.Native is now adapted to the new Table type.
- Inline captions should now be conditionally wrapped in a Plain, not
a Para block.
- The toLegacyTable function now lives in Writers.Shared.
Diffstat (limited to 'test/docx/sdt_elements.native')
-rw-r--r-- | test/docx/sdt_elements.native | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/test/docx/sdt_elements.native b/test/docx/sdt_elements.native index ad48dab5c..f0f72b6b1 100644 --- a/test/docx/sdt_elements.native +++ b/test/docx/sdt_elements.native @@ -1,24 +1,31 @@ [Table ("",[],[]) (Caption Nothing - []) [(AlignDefault,Nothing),(AlignDefault,Nothing),(AlignDefault,Nothing)] 0 + []) + [(AlignDefault,ColWidthDefault) + ,(AlignDefault,ColWidthDefault) + ,(AlignDefault,ColWidthDefault)] + (TableHead ("",[],[]) [Row ("",[],[]) - [Cell ("",[],[]) Nothing 1 1 + [Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) [] - ,Cell ("",[],[]) Nothing 1 1 + ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) [] - ,Cell ("",[],[]) Nothing 1 1 - []]] - [Row ("",[],[]) - [Cell ("",[],[]) Nothing 1 1 - [Plain [Strong [Str "col1Header"]]] - ,Cell ("",[],[]) Nothing 1 1 - [Plain [Strong [Str "col2Header"]]] - ,Cell ("",[],[]) Nothing 1 1 - [Plain [Strong [Str "col3Header"]]]] - ,Row ("",[],[]) - [Cell ("",[],[]) Nothing 1 1 - [Plain [Str "col1",Space,Str "content"]] - ,Cell ("",[],[]) Nothing 1 1 - [Plain [Str "Body",Space,Str "copy"]] - ,Cell ("",[],[]) Nothing 1 1 - [Plain [Str "col3",Space,Str "content"]]]] - []] + ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) + []]]) + [(TableBody ("",[],[]) (RowHeadColumns {getRowHeadColumns = 0}) + [] + [Row ("",[],[]) + [Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) + [Plain [Strong [Str "col1Header"]]] + ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) + [Plain [Strong [Str "col2Header"]]] + ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) + [Plain [Strong [Str "col3Header"]]]] + ,Row ("",[],[]) + [Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) + [Plain [Str "col1",Space,Str "content"]] + ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) + [Plain [Str "Body",Space,Str "copy"]] + ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1}) + [Plain [Str "col3",Space,Str "content"]]]])] + (TableFoot ("",[],[]) + [])]
\ No newline at end of file |