packages feed

asciidoc-0.1: test/asciidoctor/table/colspan.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 columns 1 and 3 | Cell in column 3, row 1

|===
>>>
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
                        }
                    ]
                ])
             []
             (Just
                [ TableRow
                    [ TableCell
                        { cellContent =
                            [ Block
                                mempty
                                Nothing
                                (Paragraph
                                   [ Inline
                                       mempty
                                       (Str "Content in a single cell that spans columns 1 and 3")
                                   ])
                            ]
                        , cellHorizAlign = Nothing
                        , cellVertAlign = Nothing
                        , cellColspan = 2
                        , 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
                        }
                    ]
                ]))
      ]
  }