mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #340] The tabstop replacement for TextView is incorrect #256
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#256
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 @dzpao on GitHub (Aug 30, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/340
The result of the tabstop replacement should be an integer multiple of tabsize. Instead of simply replacing tabstop with an equal amount of space.
For example, the result of replacing
"abc\tdef"should be"abc<space>def"instead of"abc<space><space><space><space>def".Hope to fix this problem.
@rivo commented on GitHub (Oct 17, 2019):
The handling of tabs in
tviewis not as it is in other applications. See here:Granted, this is not the original meaning of a tab. It's a very simple approximation. But I don't see proper tab handling implemented any time soon. It's extremely difficult to make it work, especially with Unicode, wide characters, word-wrapping etc. So for the time being, it will remain as it is.
I'd be open to changing
TabSizeto2, though, if enough people agree.@rivo commented on GitHub (Nov 27, 2019):
Will reopen if this becomes important again.
@dotnwat commented on GitHub (Apr 23, 2022):
I stumbled upon this issue @rivo debugging tabs in virtual table. For example in this
if the text added into the table cell contains one or more leading tabs then they are displayed as if TabSize=0.