fixed debug string formatting for structure
Summary: Fixed minor issue: * use double spaces instead of a tab character for indentation * depth should increase by 1, not 2 Reviewed By: shergin Differential Revision: D7332803 fbshipit-source-id: 74fda2c7a4be4f509270d3074a7d71a3d4d32fe4
This commit is contained in:
parent
cb3103ce09
commit
f015900d30
|
@ -50,10 +50,10 @@ std::string DebugStringConvertible::getDebugPropsDescription(DebugStringConverti
|
|||
std::string DebugStringConvertible::getDebugDescription(DebugStringConvertibleOptions options, int depth) const {
|
||||
std::string nameString = getDebugName();
|
||||
std::string valueString = getDebugValue();
|
||||
std::string childrenString = getDebugChildrenDescription(options, depth + 1);
|
||||
std::string propsString = getDebugPropsDescription(options, depth /* The first-level props are considered as same-depth things. */);
|
||||
std::string childrenString = getDebugChildrenDescription(options, depth);
|
||||
std::string propsString = getDebugPropsDescription(options, depth);
|
||||
|
||||
std::string leading = options.format ? std::string(depth, '\t') : "";
|
||||
std::string leading = options.format ? std::string(depth * 2, ' ') : "";
|
||||
std::string trailing = options.format ? "\n" : "";
|
||||
|
||||
return leading + "<" + nameString +
|
||||
|
|
Loading…
Reference in New Issue