diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-30 10:47:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-30 10:47:45 +0200 |
commit | 5f7743da2fa5791e624b41ea1a749ccfa58a8f53 (patch) | |
tree | 5d9bffbb36b30a830159625e487c0789afb304ef /cli/context.cxx | |
parent | 381f872a76f6ad8fc5caee172e903f08dd652547 (diff) |
Implement scope documentation generation in HTML
Diffstat (limited to 'cli/context.cxx')
-rw-r--r-- | cli/context.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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<string> 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 += "<p>"; + bool escape (false); std::stack<unsigned char> blocks; // Bit 0: code; 1: italic; 2: bold. |