diff --git a/src/tawashi_implem/pastie_response.cpp b/src/tawashi_implem/pastie_response.cpp index d78ef5b..6b54310 100644 --- a/src/tawashi_implem/pastie_response.cpp +++ b/src/tawashi_implem/pastie_response.cpp @@ -85,6 +85,7 @@ namespace tawashi { highlighter.setCanUseStdOut(false); highlighter.setTabSpaces(4); highlighter.setStyleCssFile("sh_darkness.css"); + highlighter.setGenerateLineNumbers(false); std::string processed_pastie; if (m_syntax_highlight) { @@ -93,7 +94,10 @@ namespace tawashi { } else { Escapist houdini; - processed_pastie = houdini.escape_html(*pastie); + std::ostringstream oss; + oss << R"(
)";
+			oss << houdini.escape_html(*pastie) << "
\n"; + processed_pastie = oss.str(); } if (not m_plain_text and m_syntax_highlight) {