Fixed indentation

This commit is contained in:
rbrugo
2020-09-10 01:37:31 +02:00
committed by Mateusz Pusz
parent b0428d623a
commit 1061d2ac56
2 changed files with 6 additions and 6 deletions

View File

@@ -147,8 +147,8 @@ namespace units {
// parse L to enable the locale-specific form
if (*begin == 'L') {
handler.on_locale();
++begin;
handler.on_locale();
++begin;
}
if(begin != end && *begin != '}' && *begin != '%') {

View File

@@ -1143,14 +1143,14 @@ TEST_CASE("localization with the 'L' specifier", "[text][fmt][localization]")
{
struct group2 : std::numpunct<char>
{
char do_thousands_sep() const override { return '_'; }
std::string do_grouping() const override { return "\2"; }
char do_thousands_sep() const override { return '_'; }
std::string do_grouping() const override { return "\2"; }
};
struct group3 : std::numpunct<char>
{
char do_thousands_sep() const override { return '\''; }
std::string do_grouping() const override { return "\3"; }
char do_thousands_sep() const override { return '\''; }
std::string do_grouping() const override { return "\3"; }
};
std::locale grp2{std::locale::classic(), new group2};