citeproc 0.3.0.5 → 0.3.0.6
raw patch · 4 files changed
+15/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- citeproc.cabal +1/−1
- man/citeproc.1 +1/−1
- src/Citeproc/Types.hs +8/−2
CHANGELOG.md view
@@ -1,5 +1,10 @@ # citeproc changelog +## 0.3.0.6++ * Fix infinite loop in `fixPunct` (#49). In a few rare cases+ `fixPunct` would hang.+ ## 0.3.0.5 * Add a space between "no date" term and disambiguator
citeproc.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: citeproc-version: 0.3.0.5+version: 0.3.0.6 synopsis: Generates citations and bibliography from CSL styles. description: citeproc parses CSL style files and uses them to generate a list of formatted citations and bibliography
man/citeproc.1 view
@@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.11.4 .\"-.TH "citeproc" "1" "" "citeproc 0.3.0.4" ""+.TH "citeproc" "1" "" "citeproc 0.3.0.6" "" .hy .SH NAME .PP
src/Citeproc/Types.hs view
@@ -1568,8 +1568,14 @@ yText = toText y xEnd = if T.null xText then '\xFFFD' else T.last xText yStart = if T.null yText then '\xFFFD' else T.head yText- keepFirst = fixPunct $ x : (dropTextWhile (== yStart) y : zs)- keepSecond = fixPunct $ dropTextWhileEnd (== xEnd) x : y : zs+ xTrimmed = dropTextWhileEnd (== xEnd) x+ yTrimmed = dropTextWhile (== yStart) y+ keepFirst = if yTrimmed == y -- see #49+ then x : fixPunct (y : zs)+ else fixPunct $ x : yTrimmed : zs+ keepSecond = if xTrimmed == x -- see #49+ then x : fixPunct (y : zs)+ else fixPunct (xTrimmed : y : zs) keepBoth = x : fixPunct (y : zs) fixPunct zs = zs