Man reader: Nicer looking "skipped content" report.
Just give the macro name, which users will recognize,
rather than the internal token.
commit7a3380381cf29a07fdce0d9f733c78119901cdda
authorJohn MacFarlane <jgm@berkeley.edu>
dateFri 19 Oct 2018, 16:24 (8 years ago)
parent574f925
src/Text/Pandoc/Readers/Man.hs+3−1
@@ -561,5 +561,7 @@ parseSkipMacro :: PandocMonad m => ManParser m Blocks
561561parseSkipMacro = do
562562 pos <- getPosition
563563 tok <- mmacroAny
564− report $ SkippedContent (show tok) pos
564+ case tok of
565+ MMacro mkind _ -> report $ SkippedContent ('.':mkind) pos
566+ _ -> return () -- shouldn't happen
565567 return mempty