mirror of
https://github.com/nlohmann/json.git
synced 2026-07-03 17:24:18 +00:00
@@ -35,11 +35,11 @@ struct fmt::formatter<nlohmann::json>
|
||||
++it;
|
||||
}
|
||||
|
||||
// ['#'] - "alternate form", used here to request pretty-printing
|
||||
bool pretty = false;
|
||||
// ['#'] - "alternate form", used here to request pretty-printing with a
|
||||
// default indent of 4 (overridden by an explicit width below, if given)
|
||||
if (it != end && *it == '#')
|
||||
{
|
||||
pretty = true;
|
||||
indent = 4;
|
||||
++it;
|
||||
}
|
||||
|
||||
@@ -54,10 +54,6 @@ struct fmt::formatter<nlohmann::json>
|
||||
++it;
|
||||
}
|
||||
}
|
||||
else if (pretty)
|
||||
{
|
||||
indent = 4;
|
||||
}
|
||||
|
||||
if (it != end && *it != '}')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user