| Ticket UUID: | 1080198 | |||
| Title: | tag -wrap should be checked | |||
| Type: | Bug | Version: | None | |
| Submitter: | vincentdarley | Created on: | 2004-12-06 20:04:03 | |
| Subsystem: | 18. [text] | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2016-10-09 18:37:55 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2016-10-09 18:37:55 | |||
| Description: |
Reported in comp.lang.tcl
Please, do
pack [text .t -width 10 -height 5 -wrap word -font fixed]
.t tag configure toolong -wrap char
.t insert end "a wa" {} "ytoolonglinetofitanywhe"
toolong "re"
and convince me I get exactly what I asked for.
The line is wrapped after the 'a', because the wrap
attribute is taken from the beginning of the line, when
it should probably be wrapped somewhere much further along.
i.e. the above gives
a
waytoolongli
netofitanywh
ere
when it should give:
a waytoolon
glinetofitany
where
| |||
| User Comments: |
fvogel added on 2016-10-09 18:37:55:
Merged to core-8-6-branch and trunk. fvogel added on 2016-09-30 19:15:17: Documentation updated, see [4d099586]. vincentdarley added on 2004-12-07 03:51:10: Logged In: YES user_id=32170 Just to add that while this bug seems very valid. It is similar in nature to the (documented) behaviour that tag -tab options only take effect if they are the first character on a logical line. The tag -wrap options behave identically -- they only take effect if the tag is on the first character of a logical line. However for -wrap this behaviour is not documented. Either way it would be nice to fix, but it is a significant change to the way tkTextDisp.c works, and will complicate the code, I think! | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki