Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3397 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hello

The error was in the wkhtmltopdf.



Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Try like this

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


Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
maj 22
1870
7
lis 18
12921
1
maj 23
3014
1
wrz 25
2257
1
cze 25
2279