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
Describe the bug
Word wrap splitting words with newlines when displaying to chat and feed window
Expected behavior
A newline should be inserted in the message before the last space on a line causing the word that wouldn't fit to be printed on an entirely new line, repeated for each line.
Additional context
X size of a view can be found in gocui.Size() func
Traverse the string backwards from X.size, on first space found replace with \n
Traverse the string backwards from X.size * n? Might need better math but in essence replace the last space of every line with a newline char (and a space for the GUI users)
The text was updated successfully, but these errors were encountered:
Describe the bug
Word wrap splitting words with newlines when displaying to chat and feed window
Expected behavior
A newline should be inserted in the message before the last space on a line causing the word that wouldn't fit to be printed on an entirely new line, repeated for each line.
Additional context
X size of a view can be found in gocui.Size() func
Traverse the string backwards from X.size, on first space found replace with
\n
Traverse the string backwards from X.size * n? Might need better math but in essence replace the last space of every line with a newline char (and a space for the GUI users)
The text was updated successfully, but these errors were encountered: