asciidoc-0.1: test/asciidoctor/table/rowspan.test
|===
| Cell in column 1, row 1 | Cell in column 2, row 1 | Cell in column 3, row 1
.2+|Content in a single cell that spans rows 2 and 3
| Cell in column 2, row 2 | Cell in column 3, row 2
| Cell in column 2, row 3 | Cell in column 3, row 3
|===
>>>
Document
{ docMeta =
Meta
{ docTitle = []
, docTitleAttributes = Nothing
, docAuthors = []
, docRevision = Nothing
, docAttributes = fromList [ ( "sectids" , "" ) ]
}
, docBlocks =
[ Block
mempty
Nothing
(Table
[ ColumnSpec
{ colHorizAlign = Nothing
, colVertAlign = Nothing
, colWidth = Nothing
, colStyle = Nothing
}
, ColumnSpec
{ colHorizAlign = Nothing
, colVertAlign = Nothing
, colWidth = Nothing
, colStyle = Nothing
}
, ColumnSpec
{ colHorizAlign = Nothing
, colVertAlign = Nothing
, colWidth = Nothing
, colStyle = Nothing
}
]
(Just
[ TableRow
[ TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph [ Inline mempty (Str "Cell in column 1, row 1") ])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 1
}
, TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph [ Inline mempty (Str "Cell in column 2, row 1") ])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 1
}
, TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph [ Inline mempty (Str "Cell in column 3, row 1") ])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 1
}
]
])
[ TableRow
[ TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph
[ Inline
mempty (Str "Content in a single cell that spans rows 2 and 3")
])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 2
}
, TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph [ Inline mempty (Str "Cell in column 2, row 2") ])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 1
}
, TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph [ Inline mempty (Str "Cell in column 3, row 2") ])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 1
}
]
]
(Just
[ TableRow
[ TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph [ Inline mempty (Str "Cell in column 2, row 3") ])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 1
}
, TableCell
{ cellContent =
[ Block
mempty
Nothing
(Paragraph [ Inline mempty (Str "Cell in column 3, row 3") ])
]
, cellHorizAlign = Nothing
, cellVertAlign = Nothing
, cellColspan = 1
, cellRowspan = 1
}
]
]))
]
}