JairoCesar commited on
Commit
5be70cd
verified
1 Parent(s): 5d02f0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.JUSTIFY # Justificaci贸n completa
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.JUSTIFY
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):