Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3155 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hello

The error was in the wkhtmltopdf.



Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Try like this

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


Regards

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mai 22
1658
7
nov. 18
12580
1
mai 23
2747
1
iun. 25
1659
3
iul. 25
3288