From: SourceForge.net <no...@so...> - 2005-08-09 17:16:15
|
Bugs item #1247835, was opened at 2005-07-29 23:25 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1247835&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 18. [text] Group: current: 8.5a3 Status: Closed Resolution: Invalid Priority: 5 Submitted By: Chengye Mao (chengyemao) Assigned to: Vince Darley (vincentdarley) Summary: Incorrect tab position Initial Comment: Platform Windows XP/SV2 Tab positions of a Text widget is incorrect in Tk85a3. Try the following: text .t .t config -tab {0.5i 1.0i 1.5i 2.0i 2.5i 3.0i 3.5i 4.0i 4.5i} pack .t Type into the text widget the following text line: This is a line of text for testing tabs. It seems that tab position of a text widget in Tk 85 is not correct. An inserted tab will make multiple spaces in almost any position in the above text line even after its specified position. The correct behavior is: a tab may make mutiple spaces if it is inserted before the specified tab position. If it is inserted after its specified position, it should only make one space. The first tab only add one space after 0.5i and the second tab only add one space after 1.0i, and so on so forth. This bug may make text tab displays incompatible to previous Tk text wigets, i.e., 8.4 and below. Any text file that uses tabs in formating and saved by a previous Tcl/Tk may be display incorrectly in Tk 853a. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-08-09 02:46 Message: Logged In: NO Added some documentation, as per last comment. ---------------------------------------------------------------------- Comment By: Chengye Mao (chengyemao) Date: 2005-08-01 10:36 Message: Logged In: YES user_id=191079 I did not know that the tab behaviors of previoius Tk text wigets are incorrect. Hope your description of the tab's behavior will be incorperated into the Tk help manual. It is much easier to be understood and verified. ---------------------------------------------------------------------- Comment By: Vince Darley (vincentdarley) Date: 2005-08-01 00:30 Message: Logged In: YES user_id=32170 You're misunderstanding the documentation. A given \tab character isn't associated with one particular 'stop' that it owns, and therefore checks whether it falls before or after that stop. Each \tab character simply advances to the next tab stop that lies after its position. There were bugs in Tk 8.4's tab handling (see other bug reports), so 8.5 does in fact have different behaviour, but those differences are not with respect to the above example as such (they may influence the result from the above example, but that's a coincidence). I you disagree, please attach a demonstration script to this report with further detail (your report above has been converted to pure text and contains no tabs). ---------------------------------------------------------------------- Comment By: Jim Ingham (wolfsuit) Date: 2005-07-30 18:46 Message: Logged In: YES user_id=169107 Dunno why this was assigned to me, the text widget is definitely not my forte, and this is not OSX specific... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1247835&group_id=12997 |