Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2250 Visualizzazioni

I create a text field with size=4000. I can see the right line break effect in edit mode, but in not edit mode the text is one line without line break.

I use the style as below, but it does not work. Could someone know how to solve the line break problem in using the text field?

omment_log = fields.Text(string='doctor word', size=4000)

<div colspan="6" style="white-space:pre-wrap;">
<field name="comment_log"/>
div>


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 24
2854
2
mag 23
2641
1
apr 23
10835
0
gen 24
8866
1
giu 15
5036