1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Output patches with trailing newlines

This commit is contained in:
joshvera 2016-03-03 13:03:21 -05:00
parent b12c64582a
commit bafd66437f

View File

@ -30,5 +30,5 @@ printDiff parser arguments sources = case format arguments of
then path </> (takeFileName outputPath -<.> ".html")
else path
IO.withFile outputPath IO.WriteMode (`TextIO.hPutStr` rendered)
Patch -> putStr =<< diffFiles parser P.patch sources
Patch -> putStrLn =<< diffFiles parser P.patch sources
JSON -> B.putStr =<< diffFiles parser J.json sources