packages feed

asciidoc 0.1.0.4 → 0.1.0.5

raw patch · 4 files changed

+85/−1 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for asciidoc-hs +## 0.1.0.5 -- 2026-08-27++    Tables: skip whitespace before cell spec (#13).+ ## 0.1.0.4 -- 2026-08-11    * Fix tracking of rowspans in table parsing (#13). Columns occupied
asciidoc.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.4 name:               asciidoc-version:            0.1.0.4+version:            0.1.0.5 synopsis:           AsciiDoc parser. description:        A parser for AsciiDoc syntax. license:            BSD-3-Clause
src/AsciiDoc/Parse.hs view
@@ -1211,6 +1211,7 @@ -- 2*.3+^.>s| duplicate 2x, rowspan 3, top align, right align, s style pCellSep :: Char -> P CellData pCellSep sep = do+  skipWhile (\c -> c == ' ' || c == '\t')   mult <- option 1 pMultiplier   (colspan, rowspan) <- option (Nothing, Nothing) $ do     a <- optional decimal
test/regression/issue_13.test view
@@ -1,3 +1,10 @@+[options="noheader"]+|===+.2+|1,1 2+|1,2+          |2,2 .2+|2,3+ 2+|1,3+|===+ [width="100%",cols="34%,33%,33%",options="noheader",] |=== .2+|1,1 2+|1,2@@ -24,6 +31,78 @@         }   , 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+                 }+             ]+             Nothing+             [ TableRow+                 [ TableCell+                     { cellContent =+                         [ Block mempty Nothing (Paragraph [ Inline mempty (Str "1,1") ]) ]+                     , cellHorizAlign = Nothing+                     , cellVertAlign = Nothing+                     , cellColspan = 1+                     , cellRowspan = 2+                     }+                 , TableCell+                     { cellContent =+                         [ Block mempty Nothing (Paragraph [ Inline mempty (Str "1,2") ]) ]+                     , cellHorizAlign = Nothing+                     , cellVertAlign = Nothing+                     , cellColspan = 2+                     , cellRowspan = 1+                     }+                 ]+             , TableRow+                 [ TableCell+                     { cellContent =+                         [ Block mempty Nothing (Paragraph [ Inline mempty (Str "2,2") ]) ]+                     , cellHorizAlign = Nothing+                     , cellVertAlign = Nothing+                     , cellColspan = 1+                     , cellRowspan = 1+                     }+                 , TableCell+                     { cellContent =+                         [ Block mempty Nothing (Paragraph [ Inline mempty (Str "2,3") ]) ]+                     , cellHorizAlign = Nothing+                     , cellVertAlign = Nothing+                     , cellColspan = 1+                     , cellRowspan = 2+                     }+                 ]+             , TableRow+                 [ TableCell+                     { cellContent =+                         [ Block mempty Nothing (Paragraph [ Inline mempty (Str "1,3") ]) ]+                     , cellHorizAlign = Nothing+                     , cellVertAlign = Nothing+                     , cellColspan = 2+                     , cellRowspan = 1+                     }+                 ]+             ]+             Nothing)+      , Block           Attr           ( [] , fromList [ ( "width" , "100%" ) ] )           Nothing