aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-07-31 15:33:20 -0700
committerJohn MacFarlane <[email protected]>2025-07-31 15:33:20 -0700
commitce9583840dcf8baffc81b5f44f256810809e5bda (patch)
tree4d5c4603622d3377ae1e1448155ba0566ffaea00
parent3e5babbb43666f666bae467f3fd07d6ce06e2133 (diff)
Improve org citation parsing (allow space after ;).
-rw-r--r--src/Text/Pandoc/Readers/Org/Inlines.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Org/Inlines.hs b/src/Text/Pandoc/Readers/Org/Inlines.hs
index 0f9a36d0c..66dd52638 100644
--- a/src/Text/Pandoc/Readers/Org/Inlines.hs
+++ b/src/Text/Pandoc/Readers/Org/Inlines.hs
@@ -199,7 +199,7 @@ addSuffixToLastItem aff cs = do
citationSuffix d <> B.toList aff' }])
citeItems :: PandocMonad m => OrgParser m (F [Citation])
-citeItems = sequence <$> citeItem `sepBy1` (char ';')
+citeItems = sequence <$> citeItem `sepBy1` (char ';' <* skipMany1 spaceChar)
citeItem :: PandocMonad m => OrgParser m (F Citation)
citeItem = do