git.iko.soy/typeable/pandoc
on master help sign in
Man reader: improve source posiiton info.
commitc5a42e695e13ff096b75e1360d3f2b69f664bcbe authorJohn MacFarlane <jgm@berkeley.edu> dateWed 24 Oct 2018, 22:44 (8 years ago) parente472651
1 file changed+2−1
src/Text/Pandoc/Readers/Man.hs+2−1
src/Text/Pandoc/Readers/Man.hs+2−1
@@ -121,10 +121,11 @@ parseNewParagraph = do
121121-- Parser: [ManToken] -> Pandoc
122122--
123123
124−msatisfy :: (Show t, Stream s m t) => (t -> Bool) -> ParserT s st m t
124+msatisfy :: Monad m => (ManToken -> Bool) -> ParserT [ManToken] st m ManToken
125125msatisfy predic = tokenPrim show nextPos testTok
126126 where
127127 testTok t = if predic t then Just t else Nothing
128+ nextPos _pos _x (MMacro _ _ pos':_) = pos'
128129 nextPos pos _x _xs = updatePosString
129130 (setSourceColumn
130131 (setSourceLine pos $ sourceLine pos + 1) 1) ""