← back to articles

Linebreak

Linebreak

Adds line break functionality to a text field in TRIRIGA. The platform does not support adding a line break or carriage return character using a Modify Task in a workflow. Standard approaches like '\n' or <br> tags do not work.

Alternative methods exist, such as using a helper record to store a carriage return character for concatenation. However, this implementation offers a simpler approach.

The solution involves modifying text by inserting a tilde ('~') at locations where breaks are needed. A custom class called in the workflow replaces these tildes with carriage return characters.

Example

Input:

Line~Break

Output:

Line
Break

The solution represents a small but meaningful improvement to the development workflow.