mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #251] WordWrap fails to break long words #194
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @carldunham on GitHub (Mar 18, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/251
eg
results in
The function docs don't actually mention breaking up words, but the code is trying to do something with it. Suggest that the above should result in
Thanks!
@rivo commented on GitHub (Apr 5, 2019):
Thanks. Yeah, that seems to be wrong. I'll fix it but it will need to wait a bit because I'll be offline for the next three weeks.
@rivo commented on GitHub (Jun 29, 2019):
I believe I was able to fix it. This is way more difficult than it seems at first.
@carldunham commented on GitHub (Jun 29, 2019):
Awesome. Yeah, word-wrapping is a lot harder than it seems. Why Knuth took all those years off from writing his books to write TeX 😃
@rivo commented on GitHub (Jun 29, 2019):
Haha! Right. I actually think that the current version won't be the last. Once rivo/uniseg#2 is implemented, I'll have to review my code here (and probably completely rewrite it again).