aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-28 00:41:31 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-28 00:41:31 +0100
commitaeb0e030283f70b98044d4e9d8b82050f11b2049 (patch)
treef1cc5df7c57988bfebd4a5e866bddba7daf68914
parent60eb0c2950d3bf89b3e1876502d9dcc99b621dbd (diff)
downloadpaludis-aeb0e030283f70b98044d4e9d8b82050f11b2049.tar.gz
paludis-aeb0e030283f70b98044d4e9d8b82050f11b2049.tar.xz
fix output formatting
-rw-r--r--paludis/repositories/accounts/accounts_dep_key.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/paludis/repositories/accounts/accounts_dep_key.cc b/paludis/repositories/accounts/accounts_dep_key.cc
index 23cf2ec..b35bd21 100644
--- a/paludis/repositories/accounts/accounts_dep_key.cc
+++ b/paludis/repositories/accounts/accounts_dep_key.cc
@@ -106,6 +106,12 @@ AccountsDepKey::initial_labels() const
std::string
AccountsDepKey::pretty_print(const DependencySpecTree::ItemFormatter & f) const
{
+ return f.indent(0) + pretty_print_flat(f) + "\n";
+}
+
+std::string
+AccountsDepKey::pretty_print_flat(const DependencySpecTree::ItemFormatter & f) const
+{
std::stringstream s;
for (Sequence<std::tr1::shared_ptr<PackageDepSpec> >::ConstIterator i(_imp->specs->begin()),
@@ -132,9 +138,3 @@ AccountsDepKey::pretty_print(const DependencySpecTree::ItemFormatter & f) const
return s.str();
}
-std::string
-AccountsDepKey::pretty_print_flat(const DependencySpecTree::ItemFormatter & f) const
-{
- return pretty_print(f);
-}
-