Leading Spaces are getting trimmed..

Leading Spaces are getting trimmed..

gebonggebong Posts: 2Questions: 1Answers: 0

Referring to : https://datatables.net/forums/discussion/13657/

I am using version 1.9.4 of the datatables jquery. Where can I find the code that is trimming the white spaces I intentionally create so that I can remove it.

Thanks.

Answers

  • gebonggebong Posts: 2Questions: 1Answers: 0

    Same goes for 1.10.11

  • allanallan Posts: 64,090Questions: 1Answers: 10,569 Site admin
    edited May 2016

    It is done here. It is only done for data read from the DOM in 1.10 - Ajax loaded data will retain the whitespace if there is any.

    The reason for doing this is that it is not uncommon to have HTML such as:

    <td>
        Cell content
    </td>
    

    In such a case it makes sense to trim the white space, and it lead to a lot of frustration without it.

    Allan

This discussion has been closed.