-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle utf8 character as a fill character in alignment #1109
Comments
Thanks for reporting. This is a known limitation: only single code units can be used in the fill field at the moment. |
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
vitaut
added a commit
that referenced
this issue
Jul 7, 2019
|
vitaut
added a commit
that referenced
this issue
Jan 19, 2020
vitaut
added a commit
that referenced
this issue
Jan 19, 2020
vitaut
added a commit
that referenced
this issue
Jan 19, 2020
vitaut
added a commit
that referenced
this issue
Jan 19, 2020
vitaut
added a commit
that referenced
this issue
Jan 19, 2020
vitaut
added a commit
that referenced
this issue
Jan 19, 2020
{fmt} now supports UTF-8 code points as fill. For example #include <fmt/core.h>
int main() {
fmt::print(" {:─<5}─{}\n", 0, "2019 March 27 06:32:41");
} prints
as expected. |
You should compile with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use unicode symbols as fill character for alignment, you get runtime error
for example, for:
print(u8" {:─<5}─{}\n", i, str);
there supposed to be outputs like this
but there is runtime error:
missing '}' in format string
The text was updated successfully, but these errors were encountered: