You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #3224 the computation of the line length was errored because it relied on String::len, which ultimately had negative impact on the comment refactoring. This issue is to track the places where that needs to be fixed.
This list may be extended as additional places that need fixing are found:
the wrap_str method
the rewrite_comment method
The text was updated successfully, but these errors were encountered:
Hello, I'm interested in this line length problem because I'm a CJK language user.
If no one has started to work on this, can I try work for fixing this str::len issue in this EOY holiday season?
I'm assuming I just need to replace str::len with the crate unicode_width's methods, there's no complications.
If possible I also want to add a rustfmt option to switch the treating of "ambiguous characters" (UAX#11 4.2), but that seems to be bit hard work because I need to drag around the Config struct everywhere calling wrap_str and rewrite_comment, so that should be low-priority.
In #3224 the computation of the line length was errored because it relied on
String::len
, which ultimately had negative impact on the comment refactoring. This issue is to track the places where that needs to be fixed.This list may be extended as additional places that need fixing are found:
wrap_str
methodrewrite_comment
methodThe text was updated successfully, but these errors were encountered: