(cherry picked from commit 1e0bc8298119e1dbff6f2191707948a7a77c570a)
Error messages for these four are now a bit fancier and more consistent. But not yet optimised for machine readability. Cf #1436. Added to hledger-lib: chomp1, linesPrepend[2].