aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-13 19:25:22 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-13 20:04:11 -0800
commit7b4d3c77ec6d38cd1bbf0b8036a0a8413b5a5443 (patch)
tree9914614550cc89c70f5ec389ee3272908f73321e
parent3822d6c4403e55bc3b4ae9e8ea846fe563807645 (diff)
downloadpandoc-7b4d3c77ec6d38cd1bbf0b8036a0a8413b5a5443.tar.gz
Markdown reader: Fixed abbrev handler to allow abbrev at end of line.
E.g., Mr. Frank.
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 4bd9c9e07..65b03ab1f 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1067,8 +1067,8 @@ str = do
then case likelyAbbrev result of
[] -> return $ Str result
xs -> choice (map (\x ->
- try (string x >> char ' ' >>
- notFollowedBy spaceChar >>
+ try (string x >> oneOf " \n" >>
+ lookAhead letter >>
return (Str $ result ++ spacesToNbr x ++ "\160"))) xs)
<|> (return $ Str result)
else return $ Str result