Multiline strings

[multiline-strings] A string is spanning over multiple lines.

This warning category is spelled [multiline-strings] by qmllint.

String contains unescaped line terminator, which is deprecated

What happened?

A string spans over multiple lines.

Why is this bad?

Strings spanning multiple lines are a non-standard extension of ECMAScript and deprecated in QML. Use template literals instead.

Example

To fix this warning, use template literals or, alternatively, replace the newlines with ‘\n’: