bdecode print formatting fix
This commit is contained in:
parent
8ed949c4d5
commit
7e428db4ca
|
@ -370,7 +370,8 @@ namespace libtorrent
|
||||||
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_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() < 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)
|
||||||
|
@ -388,7 +389,7 @@ namespace libtorrent
|
||||||
bool one_liner = (e.dict_size() == 0
|
bool one_liner = (e.dict_size() == 0
|
||||||
|| e.dict_at(0).second->type() == lazy_entry::int_t
|
|| e.dict_at(0).second->type() == lazy_entry::int_t
|
||||||
|| (e.dict_at(0).second->type() == lazy_entry::string_t
|
|| (e.dict_at(0).second->type() == lazy_entry::string_t
|
||||||
&& e.dict_at(0).second->string_length() < 10)
|
&& e.dict_at(0).second->string_length() < 30)
|
||||||
|| e.dict_at(0).first.size() < 10)
|
|| e.dict_at(0).first.size() < 10)
|
||||||
&& e.dict_size() < 5;
|
&& e.dict_size() < 5;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue