Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2053 Представления

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
2351
2
мая 23
2304
1
апр. 23
10425
0
янв. 24
8584
1
июн. 15
4796