Artifact
ba97e432ac9cd62ed8f8cf9d78642b0184785c4f:
Attachment "unicodeandelide.tk" to
ticket [2262711f]
added by
kaitzschu
2008-11-11 21:32:12.
package require Tk
pack [text .t]
.t tag configure e -elide 0
.t insert end A {} xyz e bb\n
.t insert end \u00c4 {} xyz e bb
puts [.t search bb 1.0 "1.0 lineend"]
puts [.t search bb 2.0 "2.0 lineend"]
puts [.t search -regexp bb 1.0 "1.0 lineend"]
puts [.t search -regexp bb 2.0 "2.0 lineend"]
.t tag configure e -elide 1
puts [.t search bb 1.0 "1.0 lineend"]
puts [.t search bb 2.0 "2.0 lineend"]
puts [.t search -regexp bb 1.0 "1.0 lineend"]
puts [.t search -regexp bb 2.0 "2.0 lineend"]