Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -256,13 +256,16 @@ with col2:
|
|
256 |
perfil_cliente = re.sub(r'\n\s*\n', '\n\n', perfil_cliente)
|
257 |
perfil_cliente = perfil_cliente.strip()
|
258 |
|
259 |
-
#
|
|
|
|
|
|
|
260 |
perfil_cliente = (
|
261 |
'<div style="font-family: \'Helvetica\', \'Arial\', sans-serif; '
|
262 |
'line-height: 1.8; text-align: left; padding: 20px; '
|
263 |
'background-color: #f9f9f9; border-radius: 10px; '
|
264 |
'box-shadow: 0 2px 5px rgba(0,0,0,0.1);">'
|
265 |
-
|
266 |
'</div>'
|
267 |
)
|
268 |
|
|
|
256 |
perfil_cliente = re.sub(r'\n\s*\n', '\n\n', perfil_cliente)
|
257 |
perfil_cliente = perfil_cliente.strip()
|
258 |
|
259 |
+
# Primero reemplazar los saltos de línea con <br>
|
260 |
+
perfil_cliente_html = perfil_cliente.replace('\n', '<br>')
|
261 |
+
|
262 |
+
# Luego envolver el contenido en un div HTML con estilos (sin usar f-string con backslash)
|
263 |
perfil_cliente = (
|
264 |
'<div style="font-family: \'Helvetica\', \'Arial\', sans-serif; '
|
265 |
'line-height: 1.8; text-align: left; padding: 20px; '
|
266 |
'background-color: #f9f9f9; border-radius: 10px; '
|
267 |
'box-shadow: 0 2px 5px rgba(0,0,0,0.1);">'
|
268 |
+
+ perfil_cliente_html +
|
269 |
'</div>'
|
270 |
)
|
271 |
|