From 5f7743da2fa5791e624b41ea1a749ccfa58a8f53 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 30 Oct 2015 10:47:45 +0200 Subject: Implement scope documentation generation in HTML --- cli/context.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cli/context.cxx') diff --git a/cli/context.cxx b/cli/context.cxx index 1324b0c..332c22e 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -315,12 +315,13 @@ translate (string const& s, std::set const& set) } string context:: -format (string const& s, output_type ot) +format (output_type ot, string const& s, bool para) { string r; - r.reserve (s.size ()); - bool para (false); + if (para && ot == ot_html) + r += "

"; + bool escape (false); std::stack blocks; // Bit 0: code; 1: italic; 2: bold. -- cgit v1.1