Persano commited on
Commit
5f9a9a9
·
verified ·
1 Parent(s): ec710c0

Update templates/relatorio.html

Browse files
Files changed (1) hide show
  1. templates/relatorio.html +4 -5
templates/relatorio.html CHANGED
@@ -1,7 +1,7 @@
1
  <!DOCTYPE html>
2
  <html lang="pt-br">
3
  <head>
4
- <meta charset="UTF-8">
5
  <style>
6
  body {
7
  font-family: Arial, sans-serif;
@@ -33,7 +33,7 @@
33
  .analise {
34
  margin-top: 30px;
35
  line-height: 1.6;
36
- white-space: normal;
37
  }
38
  .rodape {
39
  margin-top: 40px;
@@ -48,16 +48,15 @@
48
  <p><strong>Capital Inicial:</strong> R$ {{ "{:,.2f}".format(capital).replace(",", "X").replace(".", ",").replace("X", ".") }}</p>
49
 
50
  <div class="grafico">
51
- <img src="data:image/png;base64,{{ grafico }}" width="600">
52
  </div>
53
 
54
  {{ tabela|safe }}
55
 
56
  <div class="analise">
57
- {{ analise_final.replace('\n', '<br>') | safe }}
58
  </div>
59
 
60
  <div class="rodape">{{ data_hoje }}</div>
61
  </body>
62
  </html>
63
-
 
1
  <!DOCTYPE html>
2
  <html lang="pt-br">
3
  <head>
4
+ <meta charset="UTF-8" />
5
  <style>
6
  body {
7
  font-family: Arial, sans-serif;
 
33
  .analise {
34
  margin-top: 30px;
35
  line-height: 1.6;
36
+ white-space: pre-wrap; /* mantém quebras de linha do texto */
37
  }
38
  .rodape {
39
  margin-top: 40px;
 
48
  <p><strong>Capital Inicial:</strong> R$ {{ "{:,.2f}".format(capital).replace(",", "X").replace(".", ",").replace("X", ".") }}</p>
49
 
50
  <div class="grafico">
51
+ <img src="data:image/png;base64,{{ grafico }}" width="600" />
52
  </div>
53
 
54
  {{ tabela|safe }}
55
 
56
  <div class="analise">
57
+ {{ analise_final|safe }}
58
  </div>
59
 
60
  <div class="rodape">{{ data_hoje }}</div>
61
  </body>
62
  </html>