Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: 75b4b92b633727328d09c37fc2be4d449c088508
Ticket: a34b49f8c63aeb7736f48eba24b256158aaff022
Revised [text]: (textDisp-2.26 and 24.24) tag -tabs does not work properly
User & Date: fvogel 2017-07-04 19:24:34
Changes

  1. icomment:
    > Francois: is the Windows version working?
    
    No arrows for me on Windows 7.
    
    Here is what I get (I had zero failures before [a69ad2fd]) when running the test suite however:
    
    <verbatim>
    ==== textDisp-2.26 LayoutDLine, tabs, breaking chunks at tabs FAILED
    ==== Contents of test case:
    
        .t delete 1.0 end
        .t tag delete x
        .t tag configure x -tabs [list 30 60 90 120] -justify right
        .t insert 1.0 "a\tb\tc\td\te"
        .t mark set dummy1 1.1
        .t mark set dummy2 1.2
        .t tag add x 1.0 end
        list [lindex [.t bbox 1.2] 0] [lindex [.t bbox 1.4] 0]  [lindex [.t bbox 1.6] 0] [lindex [.t bbox 1.8] 0]
    
    ---- Result was:
    48 78 108 138
    ---- Result should have been (exact matching):
    117 124 131 138
    ==== textDisp-2.26 FAILED
    
    
    
    ==== textDisp-24.24 TkTextCharLayoutProc, justification and tabs FAILED
    ==== Contents of test case:
    
        .t delete 1.0 end
        .t tag configure x -justify center
        .t insert 1.0 aa\tbb\tcc\tdd\t
        .t tag add x 1.0 end
        list [.t bbox 1.0] [.t bbox 1.10]
    
    ---- Result was:
    {10 3 7 15} {52 18 7 15}
    ---- Result should have been (exact matching):
    {45 3 7 15} {94 3 7 15}
    ==== textDisp-24.24 FAILED
    </verbatim>
    
  2. login: "fvogel"
  3. mimetype: "text/x-fossil-wiki"