Tk Library Source Code

View Ticket
Login
Ticket UUID: 439016
Title: Enhancement of tabify.tcl in textutil
Type: Patch Version: None
Submitter: nobody Created on: 2001-07-06 11:38:21
Subsystem: None Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-09-18 04:41:30
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2001-09-17 21:41:30
Description:
The current version (tcllib0.8) of tabify and untabify does not behave as any editor
would, which IMHO is counter-intuitive and thus limits their use.
I wrote two new procs tabify2 / untabify2 which behave differently and some tests
for them.

Any comments will be appreciated
Helmut Giese ([email protected])
User Comments: andreas_kupries added on 2001-09-18 04:41:30:
Logged In: YES 
user_id=75003

Committed to head.

andreas_kupries added on 2001-09-18 04:39:07:

File Added - 10891: 439016.diff.1

Logged In: YES 
user_id=75003

New patch containing a corrected version of tabify.

andreas_kupries added on 2001-09-15 05:31:58:

File Added - 10817: tabifyLine.test

andreas_kupries added on 2001-09-15 05:31:57:
Logged In: YES 
user_id=75003

Two more testcases showing that tabifyLine does not handle 
existing tabs properly.

andreas_kupries added on 2001-09-15 04:30:27:

File Added - 10811: 439016.diff

Logged In: YES 
user_id=75003

Enclosed an updated patch. I added nroff documentation for 
the two functions,  reformatted the tcl code to adhere to 
the general style of tcl (indentation) and braced several 
expressions for speed.

Test question: What happens if I feed a string already 
containing tabs in some positions to tabify ? Are these
taken into account when replacing spaces ? I believe not.

Algorithm question: Why does it work backward through a 
line ?

nobody added on 2001-07-06 18:38:22:

File Added - 8124: diff.txt

Attachments: