Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ def replace_variables_word(doc, variables):
|
|
| 102 |
for key, value in variables.items():
|
| 103 |
if f'<{key}>' in paragraph.text:
|
| 104 |
paragraph.text = re.sub(f'<{key}>', value, paragraph.text)
|
| 105 |
-
paragraph.alignment = WD_ALIGN_PARAGRAPH.
|
| 106 |
for table in doc.tables:
|
| 107 |
for row in table.rows:
|
| 108 |
for cell in row.cells:
|
|
@@ -110,7 +110,7 @@ def replace_variables_word(doc, variables):
|
|
| 110 |
for key, value in variables.items():
|
| 111 |
if f'<{key}>' in paragraph.text:
|
| 112 |
paragraph.text = re.sub(f'<{key}>', value, paragraph.text)
|
| 113 |
-
paragraph.alignment = WD_ALIGN_PARAGRAPH.
|
| 114 |
|
| 115 |
# Generar documento Word con interpretaci贸n
|
| 116 |
def generate_word_document(interpretation):
|
|
|
|
| 102 |
for key, value in variables.items():
|
| 103 |
if f'<{key}>' in paragraph.text:
|
| 104 |
paragraph.text = re.sub(f'<{key}>', value, paragraph.text)
|
| 105 |
+
paragraph.alignment = WD_ALIGN_PARAGRAPH.LEFT # Justificaci贸n completa
|
| 106 |
for table in doc.tables:
|
| 107 |
for row in table.rows:
|
| 108 |
for cell in row.cells:
|
|
|
|
| 110 |
for key, value in variables.items():
|
| 111 |
if f'<{key}>' in paragraph.text:
|
| 112 |
paragraph.text = re.sub(f'<{key}>', value, paragraph.text)
|
| 113 |
+
paragraph.alignment = WD_ALIGN_PARAGRAPH.LEFT
|
| 114 |
|
| 115 |
# Generar documento Word con interpretaci贸n
|
| 116 |
def generate_word_document(interpretation):
|