From 4880f2e4701d1f07b812b33d260a3ab75e4e64d4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Jun 2012 15:14:37 +0200 Subject: Fix bug in argument formatting --- cli/context.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/context.cxx') diff --git a/cli/context.cxx b/cli/context.cxx index 6b5e2f8..1fd4996 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -297,6 +297,11 @@ translate (string const& s, std::set const& set) r += s[i]; } + // If we found the opening '<' but no closing '>', add the rest. + // + if (p != string::npos) + r.append (s, p, string::npos); + return r; } -- cgit v1.1