How to realize the function that perspective button text line break?

I knew in ignition 7.9 it can work with
, but I try this way in 8.1, seem the html render can't work, does someone know?

\n + textstyle.whiteSpace: pre

1 Like


still can't work

I can't get the \n to work directly in the Perspective Property Editor.

Workaround 1

  • Add enough text into the text property so that the 'Edit Long/Multiline Text' button appears.
  • Enter the line breaks manually.
  • Add readyState.style.whiteSpace : pre.

Workaround 2

  • Newlines in an expression seem to get converted properly.
  • Add readyState.style.whiteSpace : pre.
3 Likes

Wow, it works, thanks