git.iko.soy/typeable/pandoc
on master help sign in
Better warning when trying to read multiple binary files
commitda93181d06d03698c4970d75cde84ec117e48703 authorMatthew Pickering <matthewtpickering@gmail.com> dateMon 19 Jan 2015, 02:44 (12 years ago) parent25e12ca
1 file changed+2−1
pandoc.hs+2−1
pandoc.hs+2−1
@@ -1255,7 +1255,8 @@ main = do
12551255 Right (bs,_) -> return $ UTF8.toString bs
12561256
12571257 let readFiles [] = error "Cannot read archive from stdin"
1258− readFiles (x:_) = B.readFile x
1258+ readFiles [x] = B.readFile x
1259+ readFiles (x:xs) = mapM (warn . ("Ignoring: " ++)) xs >> B.readFile x
12591260
12601261 let convertTabs = tabFilter (if preserveTabs || readerName' == "t2t"
12611262 then 0