Skip to content

Commit

Permalink
print each part of the name in newline
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed May 27, 2024
1 parent 74da73f commit 5cfb4e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contactform/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5cfb4e0

Please sign in to comment.