I think what I'll do is copy and paste the full interaction, then insert the (control-d) marker after then input. This is low effort to create, to read and to try out.
$ cat - | ledger -f - print
2009/01/01 Sample
assets 134.123 FOO @ $8.88
assets 100 BAR @ $8.88
equity
(control-d)
2009/01/01 Sample
assets 134.123 FOO @ $8.8799999999999999975
assets 100 BAR @ $8.88
equity
-Simon
(who is also fiddling with thunderbird wrap width)
