diagrams-svg 1.3.1 → 1.3.1.1
raw patch · 3 files changed
+10/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−1
- diagrams-svg.cabal +1/−1
- src/Graphics/Rendering/SVG.hs +4/−1
CHANGELOG.md view
@@ -1,6 +1,10 @@ # Change Log -## [v1.3.1]() (2015-04-30)+## [v1.3.1.1](https://github.com/diagrams/diagrams-svg/tree/v1.3.1.1) (2015-05-06)++**Bug Fix**: handle empty dashing array properly ([\#80](https://github.com/diagrams/diagrams-svg/pull/80))++## [v1.3.1](https://github.com/diagrams/diagrams-svg/tree/v1.3.1) (2015-04-30) **API Changes**
diagrams-svg.cabal view
@@ -1,5 +1,5 @@ Name: diagrams-svg-Version: 1.3.1+Version: 1.3.1.1 Synopsis: SVG backend for diagrams drawing EDSL. Homepage: http://projects.haskell.org/diagrams/ License: BSD3
src/Graphics/Rendering/SVG.hs view
@@ -333,7 +333,10 @@ getDasharray (Dashing a _) = a getDashoffset (Dashing _ o) = o dashArrayToStr = intercalate "," . map show- dashing' = getNumAttr getDashing s+ -- Ignore dashing if dashing array is empty+ checkEmpty (Just (Dashing [] _)) = Nothing+ checkEmpty other = other+ dashing' = checkEmpty $ getNumAttr getDashing s arr = (pack . dashArrayToStr . getDasharray) <$> dashing' dOffset = getDashoffset <$> dashing'