mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +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
|
||||
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) {
|
||||
final_output = fmt::format("{}{}{}", quote_string, output, quote_string);
|
||||
}
|
||||
|
||||
|
||||
// send popup
|
||||
c->SendFullPopup(
|
||||
title.c_str(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user