packages feed

skylighting 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

changelog.md view
@@ -4,3 +4,7 @@  * Initial release +## 0.1.0.1  -- 2016-12-23++* Fixed bug in LaTeX renderer (backslash in wrong position).+
skylighting.cabal view
@@ -1,5 +1,5 @@ name:                skylighting-version:             0.1.0.0+version:             0.1.0.1 synopsis:            syntax highlighting library description:         Skylighting is a syntax highlighting library with                      support for over one hundred languages.  It derives
src/Skylighting/Format/LaTeX.hs view
@@ -31,8 +31,8 @@ tokenToLaTeX :: Bool -> Token -> Text tokenToLaTeX inline (NormalTok, txt)   | Text.all isSpace txt = escapeLaTeX inline txt-tokenToLaTeX inline (toktype, txt)   = Text.snoc-  (Text.pack (show toktype) <> "{" <> escapeLaTeX inline txt <> "}") '\\'+tokenToLaTeX inline (toktype, txt)   = Text.cons '\\'+  (Text.pack (show toktype) <> "{" <> escapeLaTeX inline txt <> "}")  escapeLaTeX :: Bool -> Text -> Text escapeLaTeX inline = Text.concatMap escapeLaTeXChar