The lines of the paragraph are not wrap to another line

The lines of the paragraph are not wrap to another line

ostmalostmal Posts: 102Questions: 33Answers: 0

I have rows with hyphenation in the table cells (I did it by "\n")
When I view a table in the database – I see it.
But in the "Datatable" table, the rows are output in a heap.
I looked here:
https://datatables.net/forums/discussion/43760/force-datatable-to-wrap-text
Of course, when using "wrap", the text in the table is moved to a new line. But I would like paragraphs to be taken into account, i.e. the first word of the paragraph is FORCIBLY moved to a new line.

Answers

  • ostmalostmal Posts: 102Questions: 33Answers: 0

    Understood. In the database, I use <br> for line wrapping.

  • kthorngrenkthorngren Posts: 21,324Questions: 26Answers: 4,949
    edited August 2021

    You can use columns.render to change the \n to <br> for display. Use a global replace as shown in this tutorial.

    Kevin

Sign In or Register to comment.