Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2058 Переглядів

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>


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
груд. 24
2365
2
трав. 23
2307
1
квіт. 23
10430
0
січ. 24
8587
1
черв. 15
4802