콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3236 화면

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
1749
7
11월 18
12730
1
5월 23
2887
1
6월 25
1966
3
7월 25
3553