aboutsummaryrefslogtreecommitdiff
path: root/test/command/table-with-cell-align.md
diff options
context:
space:
mode:
authorNils Carlson <[email protected]>2020-09-25 00:43:43 +0000
committerGitHub <[email protected]>2020-09-24 17:43:43 -0700
commit1ad7a047d58a629ab7d29ea74dcb752d82d3dc11 (patch)
treee719a3919ba1354fc46a53194f16a1be48baaf7b /test/command/table-with-cell-align.md
parenta331c69b4935b03d42f88f5346b700c795e09346 (diff)
DocBook reader: Implement table cell alignment (#6698)
Diffstat (limited to 'test/command/table-with-cell-align.md')
-rw-r--r--test/command/table-with-cell-align.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/command/table-with-cell-align.md b/test/command/table-with-cell-align.md
new file mode 100644
index 000000000..d4ee72975
--- /dev/null
+++ b/test/command/table-with-cell-align.md
@@ -0,0 +1,37 @@
+```
+% pandoc -f docbook -t native --quiet
+<informaltable frame="all" rowsep="1" colsep="1">
+<tgroup cols="16">
+<tbody>
+<row>
+<entry align="center" valign="top"><simpara>1</simpara></entry>
+<entry align="left" valign="top"><simpara>2</simpara></entry>
+<entry align="right" valign="top"><simpara>3</simpara></entry>
+<entry align="justify" valign="top"><simpara>4</simpara></entry>
+</row>
+</tbody>
+</tgroup>
+</informaltable>
+^D
+[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 ("",[],[])
+ [])]
+```