aboutsummaryrefslogtreecommitdiff
path: root/test/command/table-with-cell-align.md
diff options
context:
space:
mode:
authorNils Carlson <nils@nilscarlson.se>2020-09-27 18:21:53 +0000
committerGitHub <noreply@github.com>2020-09-27 11:21:53 -0700
commitae4dcc0d4a66b30991babf080de23c08ac37cf90 (patch)
tree020c81046660601c2368712580acb9711a151755 /test/command/table-with-cell-align.md
parent3abfcbeef73d87fc5ac78de2a0f94ee9c1968f80 (diff)
downloadpandoc-ae4dcc0d4a66b30991babf080de23c08ac37cf90.tar.gz
OpenDocument Writer: Implement table cell alignment (#6700)
Co-authored-by: Mauro Bieg <mb21@users.noreply.github.com>
Diffstat (limited to 'test/command/table-with-cell-align.md')
-rw-r--r--test/command/table-with-cell-align.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/command/table-with-cell-align.md b/test/command/table-with-cell-align.md
index d4ee72975..f6a454ad2 100644
--- a/test/command/table-with-cell-align.md
+++ b/test/command/table-with-cell-align.md
@@ -35,3 +35,48 @@
(TableFoot ("",[],[])
[])]
```
+```
+% pandoc -f native -t opendocument --quiet
+[Table ("",[],[]) (Caption Nothing
+ [])
+ [(AlignDefault,ColWidthDefault)
+ ,(AlignDefault,ColWidthDefault)
+ ,(AlignDefault,ColWidthDefault)
+ ,(AlignDefault,ColWidthDefault)]
+ (TableHead ("",[],[])
+ [])
+ [(TableBody ("",[],[]) (RowHeadColumns 0)
+ []
+ [Row ("",[],[])
+ [Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
+ [Para [Str "1"]]
+ ,Cell ("",[],[]) AlignLeft (RowSpan 1) (ColSpan 1)
+ [Para [Str "2"]]
+ ,Cell ("",[],[]) AlignRight (RowSpan 1) (ColSpan 1)
+ [Para [Str "3"]]
+ ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
+ [Para [Str "4"]]]])]
+ (TableFoot ("",[],[])
+ [])]
+^D
+<table:table table:name="Table1" table:style-name="Table1">
+ <table:table-column table:style-name="Table1.A" />
+ <table:table-column table:style-name="Table1.B" />
+ <table:table-column table:style-name="Table1.C" />
+ <table:table-column table:style-name="Table1.D" />
+ <table:table-row>
+ <table:table-cell table:style-name="TableRowCell" office:value-type="string">
+ <text:p text:style-name="P1">1</text:p>
+ </table:table-cell>
+ <table:table-cell table:style-name="TableRowCell" office:value-type="string">
+ <text:p text:style-name="Table_20_Contents">2</text:p>
+ </table:table-cell>
+ <table:table-cell table:style-name="TableRowCell" office:value-type="string">
+ <text:p text:style-name="P2">3</text:p>
+ </table:table-cell>
+ <table:table-cell table:style-name="TableRowCell" office:value-type="string">
+ <text:p text:style-name="Table_20_Contents">4</text:p>
+ </table:table-cell>
+ </table:table-row>
+</table:table>
+```