From a89ee85a4b94a57e996a233c9d21679d1e1217a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Feb 2016 13:33:09 +0200 Subject: Add support for variable expansion (\$var$) in doc strings --- cli/html.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'cli/html.cxx') diff --git a/cli/html.cxx b/cli/html.cxx index 7f68453..da94a65 100644 --- a/cli/html.cxx +++ b/cli/html.cxx @@ -139,7 +139,10 @@ namespace if (n > 1) translate_arg (ds[0], arg_set); - string s (format (ot_html, escape_html (translate (d, arg_set)), true)); + string s (format (ds.scope (), + ot_html, + escape_html (translate (d, arg_set)), + true)); if (s.empty ()) return; @@ -208,7 +211,7 @@ namespace translate_arg ( doc.size () > 0 ? doc[0] : string (""), arg_set)); - os << ' ' << format (ot_html, escape_html (s), false); + os << ' ' << format (o.scope (), ot_html, escape_html (s), false); } os << "" << endl; @@ -231,7 +234,10 @@ namespace // Format the documentation string. // - d = format (ot_html, escape_html (translate (d, arg_set)), false); + d = format (o.scope (), + ot_html, + escape_html (translate (d, arg_set)), + false); wrap_lines (os, "
" + d + "
", 4); os << endl; -- cgit v1.1