note the use of unix line endings on all platforms (#51)

This commit is contained in:
Simon Michael 2011-09-27 20:55:48 +00:00
parent 9b2a5f56e1
commit 5ccfb9cf7a

View File

@ -113,6 +113,8 @@ ensureJournalFile f = do
exists <- doesFileExist f
when (not exists) $ do
hPrintf stderr "Creating hledger journal file \"%s\".\n" f
-- note Hledger.Utils.UTF8.* do no line ending conversion on windows,
-- we currently require unix line endings on all platforms.
newJournalContent >>= writeFile f
-- | Give the content for a new auto-created journal file.