Avoid auto trimming on a specific (string) column

Avoid auto trimming on a specific (string) column

desmofabdesmofab Posts: 2Questions: 0Answers: 0
edited May 2012 in General
Hi all,

from DT 1.7, white space is automatically trimmed. This is a very useful function.
But sometimes i need to avoid this function and keep white spaces inside text.
Is it possible? I've not found any option about it.
Also in fnRender text is already trimmed.

Thks...

desmo

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    This has been addressed in DataTables 1.9 (possibly 1.8 - can't quite remember!). HTML sourced tables will still be trimmed, but JSON sourced data will not be.

    Allan
  • desmofabdesmofab Posts: 2Questions: 0Answers: 0
    Hi allan,

    thank you for responding, you are right! I could not remember, it's HTML table...

    sorry for wasting your time...

    tnks again
This discussion has been closed.