mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Make multiline strings from JavaScript's print() readably in log file
Addresses quoting of newline characters as "\n" which was introduced in Qt 5.5.
This commit is contained in:
parent
c22d632c3a
commit
c72c6a0a47
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ static QScriptValue debugPrint(QScriptContext* context, QScriptEngine* engine){
|
|||
}
|
||||
message += context->argument(i).toString();
|
||||
}
|
||||
qCDebug(scriptengine) << "script:print()<<" << message;
|
||||
qCDebug(scriptengine).noquote() << "script:print()<<" << message; // noquote() so that \n is treated as newline
|
||||
|
||||
message = message.replace("\\", "\\\\")
|
||||
.replace("\n", "\\n")
|
||||
|
|
Loading…
Reference in a new issue