From 5cfb4e084c08d67aedc3527f59d3ff12beb0fdb3 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 27 May 2024 14:25:43 +0200 Subject: [PATCH] print each part of the name in newline --- contactform/app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contactform/app.py b/contactform/app.py index 6d73a77..26d1bf3 100644 --- a/contactform/app.py +++ b/contactform/app.py @@ -140,12 +140,11 @@ def index(): logging.error(f"Couldn't create Lead in Odoo: {e}") if config.PRINTING_ENABLED: - name_splitted = form.name.data.split(" ") + name_splitted = form.name.data.replace(" ","\n") label_text = ( f"{config.LABEL_HEADER}\n" "☺☺☺\n" - f"{name_splitted[0]}\n" - f"{name_splitted[1]}\n" + f"{name_splitted}" ) parameters = LabelParameters(