Skip to content

Commit 0b2adf9

Browse files
committed
RIS reader: get right order of names.
Closes jgm#8055.
1 parent 67daf96 commit 0b2adf9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Text/Pandoc/Readers/RIS.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ risRecordToReference keys = addId $ foldr go defref keys
142142
addName k v r =
143143
let new = toName [] . B.toList . B.text $ v
144144
f Nothing = Just (NamesVal new)
145-
f (Just (NamesVal ns)) = Just (NamesVal (ns ++ new))
145+
f (Just (NamesVal ns)) = Just (NamesVal (new ++ ns))
146146
f (Just x) = Just x
147147
in r{ referenceVariables =
148148
M.alter f k (referenceVariables r) }

test/command/7894.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ ER -
3838
[
3939
{
4040
"author": [
41-
{
42-
"family": "Keisler",
43-
"given": "H. Jerome"
44-
},
4541
{
4642
"family": "Chang",
4743
"given": "C. C."
44+
},
45+
{
46+
"family": "Keisler",
47+
"given": "H. Jerome"
4848
}
4949
],
5050
"edition": "3",

0 commit comments

Comments
 (0)