fix print formatting bug in print_entry
This commit is contained in:
parent
cdc30f1dd1
commit
5c71c47437
|
@ -427,7 +427,7 @@ namespace libtorrent
|
||||||
for (int i = 0; i < e.list_size(); ++i)
|
for (int i = 0; i < e.list_size(); ++i)
|
||||||
{
|
{
|
||||||
if (i == 0 && one_liner) ret += " ";
|
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");
|
if (i < e.list_size() - 1) ret += (one_liner?", ":",\n");
|
||||||
else ret += (one_liner?" ":"\n");
|
else ret += (one_liner?" ":"\n");
|
||||||
}
|
}
|
||||||
|
@ -453,7 +453,7 @@ namespace libtorrent
|
||||||
ret += "'";
|
ret += "'";
|
||||||
ret += ent.first;
|
ret += ent.first;
|
||||||
ret += "': ";
|
ret += "': ";
|
||||||
ret += print_entry(*ent.second);
|
ret += print_entry(*ent.second, single_line);
|
||||||
if (i < e.dict_size() - 1) ret += (one_liner?", ":",\n");
|
if (i < e.dict_size() - 1) ret += (one_liner?", ":",\n");
|
||||||
else ret += (one_liner?" ":"\n");
|
else ret += (one_liner?" ":"\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue