[Bug Fix] Trim output in hidden dialogue response. (#1587)

This commit is contained in:
Kinglykrab 2021-10-04 17:25:21 -04:00 committed by GitHub
parent 07664eedc0
commit b730461894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -512,7 +512,7 @@ void DialogueWindow::Render(Client *c, std::string markdown)
std::string final_output;
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);
final_output = fmt::format("{}{}{}", quote_string, trim(output), quote_string);
}
// send popup