git.iko.soy/typeable/pandoc
on master help sign in
Better warning when trying to read multiple binary files
da93181Matthew Pickering
pandoc.hs+2−1
@@ -1255,7 +1255,8 @@ main = do
1255 Right (bs,_) -> return $ UTF8.toString bs
1255 Right (bs,_) -> return $ UTF8.toString bs
1256
1256
1257 let readFiles [] = error "Cannot read archive from stdin"
1257 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
1259
1260
1260 let convertTabs = tabFilter (if preserveTabs || readerName' == "t2t"
1261 let convertTabs = tabFilter (if preserveTabs || readerName' == "t2t"
1261 then 0
1262 then 0