note the use of unix line endings on all platforms (#51)
This commit is contained in:
parent
9b2a5f56e1
commit
5ccfb9cf7a
@ -113,6 +113,8 @@ ensureJournalFile f = do
|
|||||||
exists <- doesFileExist f
|
exists <- doesFileExist f
|
||||||
when (not exists) $ do
|
when (not exists) $ do
|
||||||
hPrintf stderr "Creating hledger journal file \"%s\".\n" f
|
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
|
newJournalContent >>= writeFile f
|
||||||
|
|
||||||
-- | Give the content for a new auto-created journal file.
|
-- | Give the content for a new auto-created journal file.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user