white-space: pre-wraps override?

  • LISNS
    Asked on February 16, 2025 at 5:24 PM

    I'm using a form to calculate and display information. The information gets displayed on screen using a paragraph item and the curly brackets, like this.

    {interpretation}

    When rendered, you code then adds
    <span style="white-space: pre-wrap;" class="replaceTag 11_interpretation" default="">

    Making my display have extra lines.... there is no apparrent way to override this behavious in the card layout, as there is no access to the CSS. Am I missing something, or is this impossible?

    white space: pre wraps override? Image 1 Screenshot 40white space: pre wraps override? Image 2 Screenshot 51white space: pre wraps override? Image 3 Screenshot 62

    Jotform Thread 24241901 Screenshot
  • Mark Alan JotForm Support
    Replied on February 16, 2025 at 5:44 PM

    Hi Jesse,

    Thanks for reaching out to Jotform Support. I understand that you are experiencing issues with the `` behavior in your form's card layout, which is causing extra lines in the display. Unfortunately, as you noted, there is no direct access to CSS in the card layout to override this behavior. To resolve this, you might consider switching your form layout from Card to Classic. This change will allow you to inject custom CSS into your form, which could help you manage the spacing and display of your content more effectively.

    Give it a try and let us know how it goes.

Your Answer