[Bug Fix] Trim trailing whitespace off output in Popup. (#1584)

This commit is contained in:
Kinglykrab 2021-10-03 14:51:12 -04:00 committed by GitHub
parent 64b8d7c874
commit 07664eedc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),