We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fmt::format
code
std::cout << fmt::format("{:-<10}{}", "你好", "世界") << std::endl; std::cout << fmt::format("{:-<10}{}", "hello", "world") << std::endl;
expected
你好------世界 hello-----world
Actual results
你好--------世界 hello-----world
你 and 好 is 2 columns character. The source code of neovim may help you to implement this function.
你
好
The text was updated successfully, but these errors were encountered:
Improve width estimation (#2033)
f9af894
7e72673
Improved width computation in 7e72673. It should now give the expected result. Thanks for reporting.
Sorry, something went wrong.
No branches or pull requests
fmt::format
does not take into acount width of characters.code
expected
Actual results
The text was updated successfully, but these errors were encountered: