Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2114 Lượt xem

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>


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 24
2417
2
thg 5 23
2356
1
thg 4 23
10508
0
thg 1 24
8613
1
thg 6 15
4839