From ec5288e8b22e30002493dfd378d7c4464760869e Mon Sep 17 00:00:00 2001 From: Reinder Vos de Wael Date: Thu, 2 May 2024 11:48:22 -0400 Subject: [PATCH] Fix bug where too many args were passed to ExtendParagraph (#20) --- src/ctk_functions/functions/intake/writer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ctk_functions/functions/intake/writer.py b/src/ctk_functions/functions/intake/writer.py index 5cc177e..5187a9b 100644 --- a/src/ctk_functions/functions/intake/writer.py +++ b/src/ctk_functions/functions/intake/writer.py @@ -570,7 +570,8 @@ def write_past_therapeutic_interventions(self) -> None: heading = self._insert("Past Therapeutic Interventions", Style.HEADING_2) paragraphs = [self._insert(text) for text in texts] cmi_docx.ExtendParagraph(heading).format(font_rgb=RGB_INTAKE) - cmi_docx.ExtendParagraph(*paragraphs).format(font_rgb=RGB_INTAKE) + for paragraph in paragraphs: + cmi_docx.ExtendParagraph(paragraph).format(font_rgb=RGB_INTAKE) def write_past_self_injurious_behaviors_and_suicidality(self) -> None: """Writes the past self-injurious behaviors and suicidality to the report."""