Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3110 Visualizzazioni

Hello,


I have a big problem.

I create a simple Html field, like:

    html_field = fields.Html(string=u'Test')

And a qweb report like this:

 <template id="report_test_template" >
<t t-call="web.html_container" >
<t t-foreach="docs" t-as="o">
< div class="page">
< span t-out="o.html_field" />
</div>
</t>
</t>
</template>

When, I tested whith a simple text like:
     "one two "

The PDF report show a extra caracter for each white space:
    one twoÂ

I tried with "span t-raw=" , with plain text and .replace('& nbsp;', ' ') , and I can't it.

Please, help with any idea.

Avatar
Abbandona
Autore Risposta migliore

Hello

The error was in the wkhtmltopdf.



Avatar
Abbandona
Risposta migliore

Hi,

Try like this

<span t-field="o.html_field"/>


Regards

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 22
1600
7
nov 18
12542
1
mag 23
2704
1
giu 25
1396
3
lug 25
3093