Verbesserung
Wichtig
Detail
Detail
Verbesserung
Sonderzeichen insbesondere Zeilenumbrüche möchte man in String-Literalen gerne quoten:
"first line\n" + "second line"
Größere Text-Blöcke möchte man gerne ohne Quoting hinschreiben:
""" first line second line """
Anwendung
Die folgenden Escape-Symbole werden unterstützt:
\t tab \b backspace \n newline \r carriage return \f form feed \' single quote character \" double quote character \\ backslash character \uABCD Unicode-Escape for the unicode with hex code ABCD.
Test
- test.com.top_logic.model.search.expr.TestSearchExpression.testTextBlock()
- test.com.top_logic.model.search.expr.config.dom.TestExprFactory.testTextBlockIndented()
In der Script-Konsole:
info({{{
<h2>Test</h2>
<pre>
{
"""
Hello world
with text
blocks
End of block
"""
}
</pre>
)
}}}
info({{{
<h2>Test</h2>
<pre>
{
"Hello world\n" +
" with text\n" +
" blocks\n" +
"End of block\n"
}
</pre>
) }}}