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/source.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/source.cxx') diff --git a/cli/source.cxx b/cli/source.cxx index f8d367e..14a6a9a 100644 --- a/cli/source.cxx +++ b/cli/source.cxx @@ -260,7 +260,7 @@ namespace if (n > 1 && options.ansi_color ()) translate_arg (ds[0], arg_set); - d = format (ot_plain, translate (d, arg_set), true); + d = format (ds.scope (), ot_plain, translate (d, arg_set), true); if (d.empty ()) return; @@ -331,7 +331,7 @@ namespace s = translate_arg (s, arg_set); } - l += txt_size (format (ot_plain, s, false)); + l += txt_size (format (o.scope (), ot_plain, s, false)); } if (l > length_) @@ -422,7 +422,7 @@ namespace if (color) s = translate_arg (s, arg_set); - s = format (ot_plain, s, false); + s = format (o.scope (), ot_plain, s, false); os << escape_str (s); l += txt_size (s); @@ -458,7 +458,7 @@ namespace if (color) d = translate (d, arg_set); - d = format (ot_plain, d, false); + d = format (o.scope (), ot_plain, d, false); if (!d.empty ()) wrap_lines (os, d, length_ + 1, l); // +1 for extra space after arg. -- cgit v1.1