mirror of
https://github.com/nlohmann/json.git
synced 2026-07-03 01:04:18 +00:00
@@ -25934,11 +25934,11 @@ struct formatter<nlohmann::NLOHMANN_BASIC_JSON_TPL, char> // NOLINT(cert-dcl58-c
|
||||
++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;
|
||||
}
|
||||
|
||||
@@ -25954,10 +25954,6 @@ struct formatter<nlohmann::NLOHMANN_BASIC_JSON_TPL, char> // NOLINT(cert-dcl58-c
|
||||
++it;
|
||||
}
|
||||
}
|
||||
else if (pretty)
|
||||
{
|
||||
indent = 4;
|
||||
}
|
||||
|
||||
// sign, the '0' flag, precision, locale-specific formatting ('L'), dynamic
|
||||
// width/precision ("{...}"), and type characters all have no meaning for
|
||||
|
||||
Reference in New Issue
Block a user