Skip to content
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

debugWordWrap does not account for \n properly #19

Closed
exoad opened this issue Mar 7, 2025 · 1 comment
Closed

debugWordWrap does not account for \n properly #19

exoad opened this issue Mar 7, 2025 · 1 comment
Assignees
Labels
flaw Something isn't working pH High Priority work order triaged Has been assessed for implementation.

Comments

@exoad
Copy link
Owner

exoad commented Mar 7, 2025

This is not very useful for panicking and can produce very odd and erroneous panic messages that are not consistent with the toString() of that object.

Currently observed with Scene2D's printing of its adjacency list, where the debugWordWrap treats spaces as places to break and does not realize that the string provided already has wraps.

Instead of treating \n as real new spaces, it instead treats it as a normal character.

Maybe forward this to Flutter's issues board?

@exoad exoad added flaw Something isn't working in-triage Being assesed for implementation. labels Mar 7, 2025
@exoad exoad self-assigned this Mar 7, 2025
@exoad
Copy link
Owner Author

exoad commented Mar 7, 2025

Oh im dum, in the debugWordWrap documentations they state:

The message should not contain newlines (\n, U+000A). Strings that may contain newlines should be String.split before being wrapped.

LOL. Yea it's just an implementation error due to my ignorance

Moving it up to triaged

@exoad exoad added triaged Has been assessed for implementation. pH High Priority work order and removed in-triage Being assesed for implementation. labels Mar 7, 2025
@exoad exoad closed this as completed in beccb92 Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaw Something isn't working pH High Priority work order triaged Has been assessed for implementation.
Projects
None yet
Development

No branches or pull requests

1 participant