Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3161 มุมมอง

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.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hello

The error was in the wkhtmltopdf.



อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Try like this

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


Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 22
1659
7
พ.ย. 18
12584
1
พ.ค. 23
2754
1
มิ.ย. 25
1673
3
ก.ค. 25
3298