Man reader: Nicer looking "skipped content" report.

Just give the macro name, which users will recognize,
rather than the internal token.
This commit is contained in:
John MacFarlane 2018-10-19 16:24:30 -07:00
parent 574f9250a7
commit 7a3380381c

View file

@ -561,5 +561,7 @@ parseSkipMacro :: PandocMonad m => ManParser m Blocks
parseSkipMacro = do
pos <- getPosition
tok <- mmacroAny
report $ SkippedContent (show tok) pos
case tok of
MMacro mkind _ -> report $ SkippedContent ('.':mkind) pos
_ -> return () -- shouldn't happen
return mempty