Hello community, here is the log from the commit of package ghc-commonmark for openSUSE:Factory checked in at 2020-11-12 22:44:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-commonmark (Old) and /work/SRC/openSUSE:Factory/.ghc-commonmark.new.24930 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-commonmark" Thu Nov 12 22:44:47 2020 rev:4 rq:847874 version:0.1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-commonmark/ghc-commonmark.changes 2020-08-28 21:27:34.676502081 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-commonmark.new.24930/ghc-commonmark.changes 2020-11-12 22:44:54.642487461 +0100 @@ -1,0 +2,21 @@ +Sat Nov 7 15:34:52 UTC 2020 - [email protected] + +- Update commonmark to version 0.1.1.2. + ## 0.1.1.2 + + * Fix bug in fix to #65 (#66). + + ## 0.1.1.1 + + * Fixed corner case with link suffix parsing, which could result + in dropped tokens in certain cases (#65). + +------------------------------------------------------------------- +Mon Nov 2 03:03:04 UTC 2020 - [email protected] + +- Update commonmark to version 0.1.1. + ## 0.1.1 + + * Export `reverseSubforests` from `Commonmark.Blocks` [API change] (#64). + +------------------------------------------------------------------- Old: ---- commonmark-0.1.0.2.tar.gz New: ---- commonmark-0.1.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-commonmark.spec ++++++ --- /var/tmp/diff_new_pack.ZzswQz/_old 2020-11-12 22:44:55.462488316 +0100 +++ /var/tmp/diff_new_pack.ZzswQz/_new 2020-11-12 22:44:55.466488321 +0100 @@ -19,7 +19,7 @@ %global pkg_name commonmark %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.1.0.2 +Version: 0.1.1.2 Release: 0 Summary: Pure Haskell commonmark parser License: BSD-3-Clause ++++++ commonmark-0.1.0.2.tar.gz -> commonmark-0.1.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/commonmark-0.1.0.2/changelog.md new/commonmark-0.1.1.2/changelog.md --- old/commonmark-0.1.0.2/changelog.md 2020-08-05 21:34:49.000000000 +0200 +++ new/commonmark-0.1.1.2/changelog.md 2020-11-06 01:50:21.000000000 +0100 @@ -1,5 +1,18 @@ # Changelog for commonmark +## 0.1.1.2 + +* Fix bug in fix to #65 (#66). + +## 0.1.1.1 + +* Fixed corner case with link suffix parsing, which could result + in dropped tokens in certain cases (#65). + +## 0.1.1 + +* Export `reverseSubforests` from `Commonmark.Blocks` [API change] (#64). + ## 0.1.0.2 * Fix tight/loose list detection with multiple blank lines at end (#56). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/commonmark-0.1.0.2/commonmark.cabal new/commonmark-0.1.1.2/commonmark.cabal --- old/commonmark-0.1.0.2/commonmark.cabal 2020-08-05 21:34:15.000000000 +0200 +++ new/commonmark-0.1.1.2/commonmark.cabal 2020-11-06 01:49:22.000000000 +0100 @@ -1,6 +1,6 @@ cabal-version: 2.2 name: commonmark -version: 0.1.0.2 +version: 0.1.1.2 synopsis: Pure Haskell commonmark parser. description: This library provides the core data types and functions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/commonmark-0.1.0.2/src/Commonmark/Blocks.hs new/commonmark-0.1.1.2/src/Commonmark/Blocks.hs --- old/commonmark-0.1.0.2/src/Commonmark/Blocks.hs 2020-08-05 21:31:00.000000000 +0200 +++ new/commonmark-0.1.1.2/src/Commonmark/Blocks.hs 2020-11-01 19:10:06.000000000 +0100 @@ -30,6 +30,7 @@ , interruptsParagraph , linkReferenceDef , renderChildren + , reverseSubforests -- * BlockSpecs , docSpec , indentedCodeSpec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/commonmark-0.1.0.2/src/Commonmark/Inlines.hs new/commonmark-0.1.1.2/src/Commonmark/Inlines.hs --- old/commonmark-0.1.0.2/src/Commonmark/Inlines.hs 2020-07-21 07:50:33.000000000 +0200 +++ new/commonmark-0.1.1.2/src/Commonmark/Inlines.hs 2020-11-06 01:46:41.000000000 +0100 @@ -42,7 +42,7 @@ import Data.Char (isAscii, isLetter) import qualified Data.IntMap.Strict as IntMap import qualified Data.Map.Strict as M -import Data.Maybe (isJust, mapMaybe) +import Data.Maybe (isJust, mapMaybe, listToMaybe) import qualified Data.Set as Set #if !MIN_VERSION_base(4,11,0) import Data.Monoid ((<>)) @@ -792,16 +792,15 @@ eltchunk = Chunk (Parsed elt) openerPos elttoks afterchunks = dropWhile ((< newpos) . chunkPos) (afters right) - afterchunkpos = case afterchunks of - [] -> newpos - (ch:_) -> chunkPos ch + firstAfterTokPos = tokPos <$> listToMaybe + (concatMap chunkToks afterchunks) -- in the event that newpos is not at the -- beginning of a chunk, we need to add -- some tokens from that chunk... missingtoks = [t | t <- suffixToks - , tokPos t < afterchunkpos - , tokPos t >= newpos] + , tokPos t >= newpos + , maybe True (tokPos t <) firstAfterTokPos] addMissing = if null missingtoks then id _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
