Skip to content

Commit

Permalink
macOS|libdoomsday|UI: Monospace font clipped at the end
Browse files Browse the repository at this point in the history
Carriage return characters were confusing the Qt font renderer.

IssueID #2372
  • Loading branch information
skyjake committed Dec 18, 2019
1 parent b173c53 commit 4a65139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp
Expand Up @@ -357,7 +357,9 @@ DENG_GUI_PIMPL(PackageInfoDialog)

if (meta.has("notes"))
{
msg += "\n\n" + meta.gets("notes") + _E(r);
String notesText = meta.gets("notes");
notesText.remove('\r'); // maybe old MS-DOS text
msg += "\n\n" + notesText + _E(r);
}

if (!bundle)
Expand Down
1 change: 1 addition & 0 deletions doomsday/apps/libdoomsday/src/resource/databundle.cpp
Expand Up @@ -658,6 +658,7 @@ DENG2_PIMPL(DataBundle), public Lockable
if (!notes.isEmpty())
{
notes.replace(QRegExp("\\s+"), " "); // normalize whitespace
notes.remove('\r'); // begone foul MS-DOS
meta.set(VAR_NOTES, notes);
}
}
Expand Down

0 comments on commit 4a65139

Please sign in to comment.