From adbb2729840654019592146de3ac0b7104d0efdc Mon Sep 17 00:00:00 2001 From: Justin Hsu Date: Sat, 17 Feb 2018 18:18:25 +0000 Subject: [PATCH] Fix bug with authors with "and" in name. --- src/HakyllBibTex.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HakyllBibTex.hs b/src/HakyllBibTex.hs index 99a3587..cc7550a 100644 --- a/src/HakyllBibTex.hs +++ b/src/HakyllBibTex.hs @@ -87,7 +87,7 @@ lookupBibEntry name (BibFile es) = -------------------------------------------------------------------------------- formatAuthors :: String -> String formatAuthors auth = - let auths = splitOn "and" auth + let auths = splitOn " and" auth swapped = fmap formatAuthor auths finalSep = case (length auths) of 1 -> ""