packages feed

blaze-html-truncate 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+2/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Text/Blaze/Truncate.hs view
@@ -76,7 +76,7 @@ truncateHtml :: Int    -- ^ The amount of characters (not counting tags) which the truncated text should have at most              -> Html   -- ^ The HTML to truncate              -> Maybe Html  -- ^ `Just` the truncated HTML or `Nothing` if no truncation occured-truncateHtml n html = case go n html of Tagged n' html' -> if n' /= n then Just html' else Nothing+truncateHtml n html = case go n html of Tagged n' html' -> if n' <= 0 then Just html' else Nothing     where         go :: Int -> HtmlM b -> Tagged (HtmlM b)         go i (Parent t open close content) = fmap (Parent t open close) (go i content)
blaze-html-truncate.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                blaze-html-truncate-version:             0.1.0.1+version:             0.1.0.2 synopsis:            A truncator for blaze-html description:         This package provides a simple function to truncate HTML, preserving tags and preventing cut-off words.  homepage:            http://github.com/mruegenberg/blaze-html-truncate