hledger/hledger-web/Hledger/Web/Handler
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
..
AddR.hs move JSON instances from hledger-web to hledger-lib 2019-12-16 17:17:00 -08:00
EditR.hs web: edit/upload: normalise line endings, avoiding parse errors (#1194) 2020-02-24 14:04:44 -08:00
JournalR.hs web: --serve-api disables server-side UI; startup logging cleanups 2019-08-16 23:55:56 -07:00
MiscR.hs move JSON instances from hledger-web to hledger-lib 2019-12-16 17:17:00 -08:00
RegisterR.hs web: --serve-api disables server-side UI; startup logging cleanups 2019-08-16 23:55:56 -07:00
UploadR.hs web: edit/upload: normalise line endings, avoiding parse errors (#1194) 2020-02-24 14:04:44 -08:00