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/man.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/man.cxx') diff --git a/cli/man.cxx b/cli/man.cxx index b7bce6f..7e2757c 100644 --- a/cli/man.cxx +++ b/cli/man.cxx @@ -94,7 +94,7 @@ namespace if (n > 1) translate_arg (ds[0], arg_set); - string s (format (ot_man, translate (d, arg_set), true)); + string s (format (ds.scope (), ot_man, translate (d, arg_set), true)); if (s.empty ()) return; @@ -145,7 +145,7 @@ namespace translate_arg ( doc.size () > 0 ? doc[0] : string (""), arg_set)); - os << ' ' << format (ot_man, s, false); + os << ' ' << format (o.scope (), ot_man, s, false); } os << "\"" << endl; @@ -168,7 +168,7 @@ namespace // Format the documentation string. // - d = format (ot_man, translate (d, arg_set), false); + d = format (o.scope (), ot_man, translate (d, arg_set), false); wrap_lines (os, d); os << endl; -- cgit v1.1