From 08605cc5df4930538f2147542659b44add4a2352 Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Wed, 30 Oct 2024 11:05:45 +0000 Subject: [PATCH] citra_qt: Use non-breaking spaces+hyphens in command output message boxes --- src/citra_qt/citra_qt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/citra_qt/citra_qt.cpp b/src/citra_qt/citra_qt.cpp index 4e347460f..33f0b860a 100644 --- a/src/citra_qt/citra_qt.cpp +++ b/src/citra_qt/citra_qt.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #ifdef __APPLE__ @@ -156,6 +157,8 @@ static QString PrettyProductName() { void GMainWindow::ShowCommandOutput(std::string title, std::string message) { #ifdef _WIN32 + boost::replace_all(message, " ", "\u00a0"); // Non-breaking space + boost::replace_all(message, "-", "\u2011"); // Non-breaking hyphen QMessageBox::information(this, QString::fromStdString(title), QString::fromStdString(message)); #else std::cout << message << std::endl;