fix print formatting bug in print_entry

This commit is contained in:
Arvid Norberg 2009-10-07 07:16:18 +00:00
parent cdc30f1dd1
commit 5c71c47437
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ namespace libtorrent
for (int i = 0; i < e.list_size(); ++i)
{
if (i == 0 && one_liner) ret += " ";
ret += print_entry(*e.list_at(i));
ret += print_entry(*e.list_at(i), single_line);
if (i < e.list_size() - 1) ret += (one_liner?", ":",\n");
else ret += (one_liner?" ":"\n");
}
@ -453,7 +453,7 @@ namespace libtorrent
ret += "'";
ret += ent.first;
ret += "': ";
ret += print_entry(*ent.second);
ret += print_entry(*ent.second, single_line);
if (i < e.dict_size() - 1) ret += (one_liner?", ":",\n");
else ret += (one_liner?" ":"\n");
}