💚 fix build

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2026-07-01 20:16:12 +02:00
parent 461a9c351b
commit 85e41d06d3
4 changed files with 24 additions and 22 deletions
+3 -7
View File
@@ -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 != '}')
{