From 2bc671280e272f3e473c55307a1d416951723f09 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sun, 18 Jun 2017 01:11:16 +0100 Subject: [PATCH] Don't add html tags to colourless pasties. --- src/kamokan_impl/pastie_response.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/kamokan_impl/pastie_response.cpp b/src/kamokan_impl/pastie_response.cpp index a320da5..a23508b 100644 --- a/src/kamokan_impl/pastie_response.cpp +++ b/src/kamokan_impl/pastie_response.cpp @@ -93,10 +93,7 @@ namespace kamokan { } else { tawashi::Escapist houdini; - std::ostringstream oss; - oss << R"(
)";
-			oss << houdini.escape_html(parPastie) << "
\n"; - processed_pastie = oss.str(); + processed_pastie = houdini.escape_html(parPastie); } if (not m_plain_text and m_syntax_highlight) {