0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

modules/s_control: Workaround some issues with output for now.

This commit is contained in:
Jason Volk 2018-05-02 21:48:33 -07:00
parent a054ac6b2f
commit 6432245abd

View file

@ -84,11 +84,15 @@ noexcept try
command(out, body, opts);
out << "</pre>";
const auto str
std::string str
{
replace(out.str().substr(0, 48_KiB), '\n', "<br />")
out.str().substr(0, 32_KiB)
};
//TODO: XXXX
str = replace(std::move(str), '\n', "<br />");
str = replace(std::move(str), '"', "\\\"");
const string_view alt //TODO: X
{
"no alt text"