コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3182 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
5月 22
1667
7
11月 18
12617
1
5月 23
2791
1
6月 25
1694
3
7月 25
3321