mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +00:00
[Bug Fix] Trim trailing whitespace off output in Popup. (#1584)
This commit is contained in:
parent
64b8d7c874
commit
07664eedc0
@ -510,11 +510,11 @@ void DialogueWindow::Render(Client *c, std::string markdown)
|
|||||||
|
|
||||||
// build the final output string
|
// build the final output string
|
||||||
std::string final_output;
|
std::string final_output;
|
||||||
final_output = fmt::format("{}{}{} <br><br> {}", quote_string, output, quote_string, click_response);
|
final_output = fmt::format("{}{}{} <br><br> {}", quote_string, trim(output), quote_string, click_response);
|
||||||
if (render_hiddenresponse) {
|
if (render_hiddenresponse) {
|
||||||
final_output = fmt::format("{}{}{}", quote_string, output, quote_string);
|
final_output = fmt::format("{}{}{}", quote_string, output, quote_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
// send popup
|
// send popup
|
||||||
c->SendFullPopup(
|
c->SendFullPopup(
|
||||||
title.c_str(),
|
title.c_str(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user