diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-09 13:33:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-09 13:33:09 +0200 |
commit | a89ee85a4b94a57e996a233c9d21679d1e1217a9 (patch) | |
tree | 24b85140035a61c61849b4b4f359e9fdd83fd826 /cli/source.cxx | |
parent | cf658f4475bb22dbfaa365d53b4a3fd7e6140ec4 (diff) |
Add support for variable expansion (\$var$) in doc strings
Diffstat (limited to 'cli/source.cxx')
-rw-r--r-- | cli/source.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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. |