aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-21 08:41:24 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-21 08:41:24 -0800
commitfe1152985ca8824b62c7bce397a681e7e422e8e1 (patch)
treec34a0de986b6944edd5892019adf0f33b5549aee /src/Text/Pandoc/Readers
parent4e446358d1a356ba77c5f7b3cd967bf6c5285c15 (diff)
downloadpandoc-fe1152985ca8824b62c7bce397a681e7e422e8e1.tar.gz
Shared: Made splitBy take a test instead of an element.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 70a913a1b..6006aac5b 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -340,7 +340,7 @@ authors :: GenParser Char ParserState Block
authors = try $ do
string "\\author{"
raw <- many1 (notFollowedBy (char '}') >> inline)
- let authors' = map normalizeSpaces $ splitBy LineBreak raw
+ let authors' = map normalizeSpaces $ splitBy (== LineBreak) raw
char '}'
spaces
updateState (\s -> s { stateAuthors = authors' })