Hello community, here is the log from the commit of package ghc-skylighting-core for openSUSE:Factory checked in at 2020-06-19 17:18:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-skylighting-core (Old) and /work/SRC/openSUSE:Factory/.ghc-skylighting-core.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-skylighting-core" Fri Jun 19 17:18:14 2020 rev:14 rq:815176 version:0.8.4 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-skylighting-core/ghc-skylighting-core.changes 2020-05-11 13:36:32.424512176 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-skylighting-core.new.3606/ghc-skylighting-core.changes 2020-06-19 17:18:22.955051369 +0200 @@ -1,0 +2,12 @@ +Tue Jun 9 09:10:54 UTC 2020 - psim...@suse.com + +- Update skylighting-core to version 0.8.4. + ## 0.8.4 + + * HTML output: use aria-hidden="true" on empty a elements + unless numberLines is specified (in which case the element + is still empty but will have content added by CSS). + This is to avoid excess noise when the code blocks are + read by screen readers. See jgm/pandoc#6352. + +------------------------------------------------------------------- Old: ---- skylighting-core-0.8.3.4.tar.gz New: ---- skylighting-core-0.8.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-skylighting-core.spec ++++++ --- /var/tmp/diff_new_pack.3CiIwQ/_old 2020-06-19 17:18:27.183063345 +0200 +++ /var/tmp/diff_new_pack.3CiIwQ/_new 2020-06-19 17:18:27.187063357 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-skylighting-core # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pkg_name skylighting-core %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.8.3.4 +Version: 0.8.4 Release: 0 Summary: Syntax highlighting library License: BSD-3-Clause ++++++ skylighting-core-0.8.3.4.tar.gz -> skylighting-core-0.8.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/skylighting-core-0.8.3.4/changelog.md new/skylighting-core-0.8.4/changelog.md --- old/skylighting-core-0.8.3.4/changelog.md 2020-04-01 18:39:44.000000000 +0200 +++ new/skylighting-core-0.8.4/changelog.md 2020-05-09 22:07:09.000000000 +0200 @@ -1,5 +1,13 @@ # Revision history for skylighting and skylighting-core +## 0.8.4 + + * HTML output: use aria-hidden="true" on empty a elements + unless numberLines is specified (in which case the element + is still empty but will have content added by CSS). + This is to avoid excess noise when the code blocks are + read by screen readers. See jgm/pandoc#6352. + ## 0.8.3.4 * Update syntax descriptions for: cmake agda c coffee doxygenlua html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/skylighting-core-0.8.3.4/skylighting-core.cabal new/skylighting-core-0.8.4/skylighting-core.cabal --- old/skylighting-core-0.8.3.4/skylighting-core.cabal 2020-04-01 18:15:16.000000000 +0200 +++ new/skylighting-core-0.8.4/skylighting-core.cabal 2020-05-09 22:06:08.000000000 +0200 @@ -1,5 +1,5 @@ name: skylighting-core -version: 0.8.3.4 +version: 0.8.4 synopsis: syntax highlighting library description: Skylighting is a syntax highlighting library. It derives its tokenizers from XML syntax diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/skylighting-core-0.8.3.4/src/Skylighting/Format/HTML.hs new/skylighting-core-0.8.4/src/Skylighting/Format/HTML.hs --- old/skylighting-core-0.8.3.4/src/Skylighting/Format/HTML.hs 2020-04-01 17:40:25.000000000 +0200 +++ new/skylighting-core-0.8.4/src/Skylighting/Format/HTML.hs 2020-05-09 22:04:21.000000000 +0200 @@ -12,6 +12,7 @@ import Text.Blaze.Html import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A +import Data.String (fromString) #if !MIN_VERSION_base(4,11,0) import Data.Semigroup #endif @@ -89,7 +90,12 @@ sourceLineToHtml opts lno cont = H.span ! A.id lineNum $ do - H.a ! A.href lineRef $ mempty + H.a ! A.href lineRef + ! (if numberLines opts + then mempty + else customAttribute (fromString "aria-hidden") + (fromString "true")) -- see jgm/pandoc#6352 + $ mempty mapM_ (tokenToHtml opts) cont where lineNum = toValue prefixedLineNo lineRef = toValue ('#':prefixedLineNo)