Skip to content

Commit

Permalink
[FIX] pos: allow new line in receipt header
Browse files Browse the repository at this point in the history
To reproduce the error:
1. In the settings of a POS, enable "Header & Footer"
2. Add a header (with at least one line break)
4. Start a session
4. Validate an order

Error: The header of the receipt is incorrect, line breaks are not
applied

OPW-2528558
  • Loading branch information
adwid committed Jun 8, 2021
1 parent 1f9e032 commit 66c695b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<t t-raw="receipt.header_html" />
</t>
<t t-if="!receipt.header_html and receipt.header">
<div><t t-esc="receipt.header" /></div>
<div style="white-space:pre-line"><t t-esc="receipt.header" /></div>
</t>
<t t-if="receipt.cashier">
<div class="cashier">
Expand Down

0 comments on commit 66c695b

Please sign in to comment.