In an sale order we have the possibility to enter some line feeds or carriege return signs. In the preview, you can see it in Odoo, but on the pdf generation, the signs are ignored.
What i tried is:
<t t-set="temp_name" t-value="temp_name.replace('\n',' ')"/>
<t t-esc="temp_name"/>
but this produces an exception:
File "/home/odoo/src/odoo/9.0/openerp/tools/safe_eval.py", line 296, in safe_eval c = test_expr(expr, _SAFE_OPCODES, mode=mode) File "/home/odoo/src/odoo/9.0/openerp/tools/safe_eval.py", line 153, in test_expr code_obj = compile(expr, "", mode) QWebException: EOL while scanning string literal (, line 1)