unaryPlus

open operator fun String.unaryPlus()(source)

Adds the given string as a new line of text to the content being built by the TextContentBuilder.

This operator function ensures that the text is appended on a new line if the caret is not already at the beginning of a new line. If the caret is positioned at the start of a line, the string is directly appended.

The method is designed to simplify building multiline text content and integrates seamlessly with the TextContentBuilder, supporting fluent and declarative content construction.