aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorYan Pas <yanp.bugz@gmail.com>2018-10-07 19:54:16 +0300
committerYan Pas <yanp.bugz@gmail.com>2018-10-07 19:55:10 +0300
commitc7aa7a83ddbfb220d1613dabb27dc1e72eeb7385 (patch)
tree18d29505f0eb22e75dfab321f76a6bdc1ba28d49 /src/Text/Pandoc/Readers
parent27467189ab184c5d098e244e01f7d1bfdb0d4d45 (diff)
downloadpandoc-c7aa7a83ddbfb220d1613dabb27dc1e72eeb7385.tar.gz
test suite and more secapes
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Man.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs
index 30076102b..0f84a01b3 100644
--- a/src/Text/Pandoc/Readers/Man.hs
+++ b/src/Text/Pandoc/Readers/Man.hs
@@ -179,9 +179,10 @@ escapeLexer = do
escChar :: PandocMonad m => ManLexer m EscapeThing
escChar =
- let skipSeqs = ["%", "{", "}", "&"]
+ let skipSeqs = ["%", "{", "}", "&", "\n", ":", "\"", "0", "c"]
subsSeqs = [ ("-", '-'), (" ", ' '), ("\\", '\\'), ("[lq]", '“'), ("[rq]", '”')
- , ("[em]", '—'), ("[en]", '–') ]
+ , ("[em]", '—'), ("[en]", '–'), ("*(lq", '«'), ("*(rq", '»')
+ , ("t", '\t'), ("e", '\\') ]
substitute :: PandocMonad m => (String,Char) -> ManLexer m EscapeThing
substitute (from,to) = try $ string from >> return (EChar to)
skip :: PandocMonad m => String -> ManLexer m EscapeThing