diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-12-13 19:25:22 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-13 20:04:11 -0800 |
commit | 7b4d3c77ec6d38cd1bbf0b8036a0a8413b5a5443 (patch) | |
tree | 9914614550cc89c70f5ec389ee3272908f73321e /src/Text | |
parent | 3822d6c4403e55bc3b4ae9e8ea846fe563807645 (diff) | |
download | pandoc-7b4d3c77ec6d38cd1bbf0b8036a0a8413b5a5443.tar.gz |
Markdown reader: Fixed abbrev handler to allow abbrev at end of line.
E.g., Mr.
Frank.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 4 |
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 |