From 6432245abda8f2d8cf0e1323014f93c7689959e4 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 2 May 2018 21:48:33 -0700 Subject: [PATCH] modules/s_control: Workaround some issues with output for now. --- modules/s_control.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/s_control.cc b/modules/s_control.cc index 8c1ba4853..f0464b792 100644 --- a/modules/s_control.cc +++ b/modules/s_control.cc @@ -84,11 +84,15 @@ noexcept try command(out, body, opts); out << ""; - const auto str + std::string str { - replace(out.str().substr(0, 48_KiB), '\n', "
") + out.str().substr(0, 32_KiB) }; + //TODO: XXXX + str = replace(std::move(str), '\n', "
"); + str = replace(std::move(str), '"', "\\\""); + const string_view alt //TODO: X { "no alt text"