cosmetic improvement when printing bdecoded structures
This commit is contained in:
parent
ca4ab436d0
commit
8189262182
|
@ -395,11 +395,12 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
os << "[";
|
os << "[";
|
||||||
bool one_liner = (e.list_size() == 0
|
bool one_liner = (e.list_size() == 0
|
||||||
|| e.list_at(0)->type() == lazy_entry::int_t
|
|| (e.list_at(0)->type() == lazy_entry::int_t
|
||||||
|
&& e.list_size() < 20)
|
||||||
|| (e.list_at(0)->type() == lazy_entry::string_t
|
|| (e.list_at(0)->type() == lazy_entry::string_t
|
||||||
&& (e.list_at(0)->string_length() < 10
|
&& (e.list_at(0)->string_length() < 10
|
||||||
|| e.list_size() < 2)))
|
|| e.list_size() < 2))
|
||||||
&& e.list_size() < 5;
|
&& e.list_size() < 5);
|
||||||
if (!one_liner) os << "\n";
|
if (!one_liner) os << "\n";
|
||||||
for (int i = 0; i < e.list_size(); ++i)
|
for (int i = 0; i < e.list_size(); ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue