diff options
author | Nils Carlson <nils@nilscarlson.se> | 2020-09-10 16:11:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 09:11:52 -0700 |
commit | 96a0f3c7affe550c5ef5330df3d17197244f92d7 (patch) | |
tree | 9250004ff03574ea978be321a05956d67949226f /test/command | |
parent | 9cad5499c45022b9893156bb5e0468cabefca974 (diff) | |
download | pandoc-96a0f3c7affe550c5ef5330df3d17197244f92d7.tar.gz |
docbook reader: Implement column span support for tables (#6492)
Implement column span support for tables in the DocBook reader.
Co-authored-by: Nils Carlson <nils.carlson@ludd.ltu.se>
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/table-with-column-span.md | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/test/command/table-with-column-span.md b/test/command/table-with-column-span.md new file mode 100644 index 000000000..082233e5d --- /dev/null +++ b/test/command/table-with-column-span.md @@ -0,0 +1,119 @@ +``` +% pandoc -f docbook -t native --quiet +<informaltable frame="all" rowsep="1" colsep="1"> +<tgroup cols="16"> +<colspec colname="col_1" colwidth="6.25*"/> +<colspec colname="col_2" colwidth="6.25*"/> +<colspec colname="col_3" colwidth="6.25*"/> +<colspec colname="col_4" colwidth="6.25*"/> +<colspec colname="col_5" colwidth="6.25*"/> +<colspec colname="col_6" colwidth="6.25*"/> +<colspec colname="col_7" colwidth="6.25*"/> +<colspec colname="col_8" colwidth="6.25*"/> +<colspec colname="col_9" colwidth="6.25*"/> +<colspec colname="col_10" colwidth="6.25*"/> +<colspec colname="col_11" colwidth="6.25*"/> +<colspec colname="col_12" colwidth="6.25*"/> +<colspec colname="col_13" colwidth="6.25*"/> +<colspec colname="col_14" colwidth="6.25*"/> +<colspec colname="col_15" colwidth="6.25*"/> +<colspec colname="col_16" colwidth="6.25*"/> +<tbody> +<row> +<entry align="center" valign="top" namest="col_1" nameend="col_8"><simpara><emphasis role="strong">Octet no. 1</emphasis></simpara></entry> +<entry align="center" valign="top" namest="col_2" nameend="col_9"><simpara><emphasis role="strong">Octet no. 2</emphasis></simpara></entry> +</row> +<row> +<entry align="center" valign="top"><simpara>16</simpara></entry> +<entry align="center" valign="top"><simpara>15</simpara></entry> +<entry align="center" valign="top"><simpara>14</simpara></entry> +<entry align="center" valign="top"><simpara>13</simpara></entry> +<entry align="center" valign="top"><simpara>12</simpara></entry> +<entry align="center" valign="top"><simpara>11</simpara></entry> +<entry align="center" valign="top"><simpara>10</simpara></entry> +<entry align="center" valign="top"><simpara>9</simpara></entry> +<entry align="center" valign="top"><simpara>8</simpara></entry> +<entry align="center" valign="top"><simpara>7</simpara></entry> +<entry align="center" valign="top"><simpara>6</simpara></entry> +<entry align="center" valign="top"><simpara>5</simpara></entry> +<entry align="center" valign="top"><simpara>4</simpara></entry> +<entry align="center" valign="top"><simpara>3</simpara></entry> +<entry align="center" valign="top"><simpara>2</simpara></entry> +<entry align="center" valign="top"><simpara>1</simpara></entry> +</row> +<row> +<entry align="center" valign="top" namest="col_1" nameend="col_8"><simpara>Code A</simpara></entry> +<entry align="center" valign="top" namest="col_2" nameend="col_9"><simpara>Code B</simpara></entry> +</row> +</tbody> +</tgroup> +</informaltable> +^D +[Table ("",[],[]) (Caption Nothing + []) + [(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2) + ,(AlignDefault,ColWidth 6.25e-2)] + (TableHead ("",[],[]) + []) + [(TableBody ("",[],[]) (RowHeadColumns 0) + [] + [Row ("",[],[]) + [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 8) + [Para [Strong [Str "Octet",Space,Str "no.",Space,Str "1"]]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 8) + [Para [Strong [Str "Octet",Space,Str "no.",Space,Str "2"]]]] + ,Row ("",[],[]) + [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "16"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "15"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "14"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "13"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "12"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "11"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "10"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "9"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "8"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "7"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "6"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "5"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "4"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "3"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "2"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) + [Para [Str "1"]]] + ,Row ("",[],[]) + [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 8) + [Para [Str "Code",Space,Str "A"]] + ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 8) + [Para [Str "Code",Space,Str "B"]]]])] + (TableFoot ("",[],[]) + [])] +``` |