From 55979778682a2da30163bda171e0da7d881fad05 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Tue, 14 Nov 2023 01:00:42 +0530 Subject: [PATCH] Newline in unrenderbox --- renderbox.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/renderbox.py b/renderbox.py index 81bf9c1..070b47f 100644 --- a/renderbox.py +++ b/renderbox.py @@ -117,9 +117,10 @@ class UnrenderBox(QDialog): for attr, value in prescription["prescriber"].items(): if(attr not in ["properties"] and len(value)>0): text=text+""+value.upper()+"
" - text=text+"
" + text=text.replace("\n", "
")+"
" for attr, value in prescription.items(): if(attr not in ["prescriber", "custom", "properties", "file"] and len(str(value))>0 and (attr not in ["daw"] or value)): text=text+""+attr.upper()+"
" - text=text+str(value)+"
" + text=text+str(value).strip() + text=text.replace("\n", "
")+"
" self.display.setText(text) -- 2.39.5