hledger/hledger-lib/Hledger/Utils
Simon Michael 7ec25da13a web: edit/upload: normalise line endings, avoiding parse errors (#1194)
Renamed: writeValidJournal -> writeJournalTextIfValidAndChanged

Added comments clarifying line ending behaviour of:
add, import, appendToJournalFileOrStdout, readFilePortably,
writeFileWithBackupIfChanged, writeJournalTextIfValidAndChanged

Summary of current behaviour:

- hledger add and import commands will append with (at least some)
  unix line endings, possibly causing the file to have mixed line
  endings

- hledger-web edit and upload forms will write the file with
  the current system's native line endings, ie changing all
  line endings if the file previously used foreign line endings.
2020-02-24 14:04:44 -08:00
..
Color.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Debug.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
Parse.hs web: edit/upload: normalise line endings, avoiding parse errors (#1194) 2020-02-24 14:04:44 -08:00
Regex.hs lib: memoised versions of regexReplace[CI] (#244) 2015-09-26 15:45:17 -10:00
String.hs ;spelling fix 2020-01-04 21:17:50 -08:00
Test.hs ;fix build issues with old GHC versions 2019-11-28 15:22:12 -08:00
Text.hs ;lib: export textQuoteIfNeeded 2020-02-03 10:10:46 -08:00
Tree.hs Replace Parsec with Megaparsec (see #289) (#366) 2016-07-29 08:57:10 -07:00
UTF8IOCompat.hs ;lib: drop SystemString left from GHC pre 7.2 2019-11-18 17:38:39 -08:00