Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Change default for first-reference-note-number to 0 on reading.
Browse files Browse the repository at this point in the history
See #128.
  • Loading branch information
jgm committed May 9, 2015
1 parent 7132cdd commit 0de8371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/CSL/Reference.hs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ instance FromJSON Reference where
v .:? "categories" .!= [] <*>
v .:? "language" .!= "" <*>
v .:? "citation-number" .!= CNum 0 <*>
((v .: "first-reference-note-number" >>= parseInt) <|> return 1) <*>
((v .: "first-reference-note-number" >>= parseInt) <|> return 0) <*>
v .:? "citation-label" .!= "")
where takeFirstNum (Formatted (Str xs : _)) =
case takeWhile isDigit xs of
Expand Down

0 comments on commit 0de8371

Please # to comment.