commit | 14a69fcc54e2a7de9a999e930c8b39be1ba27fb3 | [log] [tgz] |
---|---|---|
author | Victor Zverovich <viz@fb.com> | Sun Jan 01 10:44:55 2023 -0800 |
committer | Victor Zverovich <viz@fb.com> | Sun Jan 01 10:44:55 2023 -0800 |
tree | c3b12d5fa21cd84885d0cd2b0297419be2077b50 | |
parent | bf34ffd33f97f81f5eeae1062e808858ab068a98 [diff] |
Use parse_align
diff --git a/include/fmt/core.h b/include/fmt/core.h index 557f392..cb55f4f 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h
@@ -2439,7 +2439,7 @@ auto c = '\0'; if (end - begin > 1) { auto next = to_ascii(begin[1]); - c = next == '<' || next == '>' || next == '^' ? '\0' : to_ascii(*begin); + c = parse_align(next) == align::none ? to_ascii(*begin) : '\0'; } else { if (begin == end) return begin; c = to_ascii(*begin);