Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2140 Vizualizări

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>


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
dec. 24
2563
2
mai 23
2496
1
apr. 23
10655
0
ian. 24
8714
1
iun. 15
4943