git.iko.soy/typeable/pandoc
on master help sign in
Don't pass a [Str ""] as citationPrefix.
commit47c64d4fc4be8733615f3378e9a68c513c5710c2 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 17 Nov 2010, 15:35 (16 years ago) parentce9fc2a
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -1392,7 +1392,7 @@ citation = try $ do
13921392 key <- citeKey
13931393 loc <- option "" locator
13941394 return $ Citation{ citationId = key
1395− , citationPrefix = [Str pref]
1395+ , citationPrefix = if pref /= [] then [Str pref] else []
13961396 , citationSuffix = []
13971397 , citationLocator = loc
13981398 , citationMode = if suppress_auth