Displaying Text Area Values in Views

Support MB Views Displaying Text Area Values in ViewsResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24898
    MartinMartin
    Participant

    Hi,

    I have a load of text captured in a textarea custom field. This content includes carriage returns and is fine when seen in the textarea box in the form.

    When I place the value into some html to display it in a table in a view the carriage returns are stripped and all the text appears as a single long box.

    Basically something formatted as:
    1 - first row
    2 - second row
    3 - third row

    Displays in the form as:
    1 - first row2 - second row3 - third row

    This is the html - nothing special in there.

             <tr>
                    <td><strong>Any additional information</strong></td>
                    <td>{{ user.group_additional_information.further_information_area }}</td>
                </tr>
    

    Is there anything I should be doing differently to get the content to display properly?

    Thanks.

    #24901
    MartinMartin
    Participant

    Never mind. I've found style="white-space: pre-line;" which sorts it out - clearly I need more caffeine... 😉

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.