Spaces:
Sleeping
Sleeping
Update pdf_generator.py
Browse files- pdf_generator.py +1 -1
pdf_generator.py
CHANGED
@@ -127,7 +127,7 @@ def generate_pdf(session_state):
|
|
127 |
answer = f"Option selected: {option}\n\nConclusion: {conclusion}"
|
128 |
|
129 |
# Create a table for the answer to allow multi-line text within a block
|
130 |
-
data = [[Paragraph(answer, styles['Answer'])]]
|
131 |
t = Table(data, colWidths=[450])
|
132 |
t.setStyle(TableStyle([
|
133 |
('BACKGROUND', (0, 0), (-1, -1), colors.HexColor("#f0f2fd")),
|
|
|
127 |
answer = f"Option selected: {option}\n\nConclusion: {conclusion}"
|
128 |
|
129 |
# Create a table for the answer to allow multi-line text within a block
|
130 |
+
data = [[Paragraph(str(answer), styles['Answer'])]]
|
131 |
t = Table(data, colWidths=[450])
|
132 |
t.setStyle(TableStyle([
|
133 |
('BACKGROUND', (0, 0), (-1, -1), colors.HexColor("#f0f2fd")),
|