Skip to content

Commit

Permalink
Fixed|Definitions: Newlines in Text strings
Browse files Browse the repository at this point in the history
IssueID #2408
  • Loading branch information
skyjake committed Jan 31, 2020
1 parent 5eee4d3 commit 31416ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/apps/libdoomsday/src/defs/dedparser.cpp
Expand Up @@ -2174,6 +2174,8 @@ DENG2_PIMPL(DEDParser)
String buffer;
if (ReadString(buffer))
{
buffer.replace("\\n", "\n"); // newline escapes are allowed

QByteArray bufferUtf8 = buffer.toUtf8();
txt->text = (char *) M_Realloc(txt->text, bufferUtf8.length() + 1);
qstrcpy(txt->text, bufferUtf8.constData());
Expand Down

0 comments on commit 31416ca

Please sign in to comment.