HF RL Explorer

thermal receipt printer: edge case

thermal receipt printer: edge case: a task in smol-software-harbor (Harbor dataset). Long product names are cut off on our 32-column receipts ( Organic extra virgin olive oil 1 l loses its size). Make line() in printer/layout.py wrap them as its docstring describes: words go onto earlier lines…

The task

Long product names are cut off on our 32-column receipts (`Organic extra virgin olive oil 1 l` loses its size). Make `line()` in `printer/layout.py` wrap them as its docstring describes: words go onto earlier lines (joined by single spaces, as many as fit left of the price), the last line carries the price…

Part of efederici/smol-software-harbor.