HF RL Explorer

receipt printing: fix bug

receipt printing: fix bug: a task in smol-software-harbor (Harbor dataset). Receipts break on the 32-column printer when an item name is long: line() in src/receipt.js produces lines wider than WIDTH . As its comment says, a name that does not fit must be cut and end with ~ , so that every line is…

The task

Receipts break on the 32-column printer when an item name is long: `line()` in `src/receipt.js` produces lines wider than `WIDTH`. As its comment says, a name that does not fit must be cut and end with `~`, so that every line is exactly `WIDTH` characters with at least one space before the amount. Fix it and run…

Part of efederici/smol-software-harbor.