diff --git a/ReactCommon/fabric/debug/DebugStringConvertible.cpp b/ReactCommon/fabric/debug/DebugStringConvertible.cpp index f669c1bd5..ce2c91611 100644 --- a/ReactCommon/fabric/debug/DebugStringConvertible.cpp +++ b/ReactCommon/fabric/debug/DebugStringConvertible.cpp @@ -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 +