aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-25 21:55:08 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-25 21:55:08 +0000
commit441fd39b9e87498e15fb328a104cc8d1ecf6a651 (patch)
tree1434712037d2c00b900bd7559839415d8f37d6c3
parente9fb16a16c005848e20ffd2c65c3cb9db69c2ad9 (diff)
downloadpaludis-441fd39b9e87498e15fb328a104cc8d1ecf6a651.tar.gz
paludis-441fd39b9e87498e15fb328a104cc8d1ecf6a651.tar.xz
Don't show = if the key is empty
-rw-r--r--paludis/stringify_formatter.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/paludis/stringify_formatter.cc b/paludis/stringify_formatter.cc
index beb0fdf..c24895f 100644
--- a/paludis/stringify_formatter.cc
+++ b/paludis/stringify_formatter.cc
@@ -68,7 +68,11 @@ StringifyFormatter::format(const std::pair<const std::string, std::string> & s,
{
if (_imp->f_str)
return _imp->f_str_str->format(s, k);
- return s.first + "=" + s.second;
+
+ if (s.first.empty())
+ return s.second;
+ else
+ return s.first + "=" + s.second;
}
std::string