From 1e5343a2435670c5d7e45ad6c698902e76b9b916 Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Wed, 30 Oct 2024 11:05:45 +0000 Subject: [PATCH] lime_qt: Use non-breaking spaces+hyphens in command output message boxes --- src/lime_qt/lime_qt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lime_qt/lime_qt.cpp b/src/lime_qt/lime_qt.cpp index 05a268b6b..b5f25f035 100644 --- a/src/lime_qt/lime_qt.cpp +++ b/src/lime_qt/lime_qt.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #ifdef __APPLE__ @@ -155,6 +156,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;