Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Problems with format Command and Commenting

Closed / Fixed218381ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:54
OriginalBugID: 4383 RFE
Version: 8.1
SubmitDate: '2000-03-16'
LastModified: '2000-03-22'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: ericm
OS: Windows NT
OSVersion: Win NT Service Pack 5
Machine: WinNT
FixedDate: '2000-10-25'
ClosedDate: '2000-03-22'


Name:
George Lewis

Extensions:
NONE

CustomShell:
NONE

DesiredBehavior:
The format command does not provide proper alignment for consecutive text strings.  That is, if a table has short and long strings
in different combinations the spacing between the text strings will not be consistent.

Are there any plans for the creation of a comment block symbol (similiar to C++/Java  /* ... */)?



I don't understand what you mean.  Perhaps you can give an example demonstrating your problem?  I tried:

% puts [format "%30s %30s" foo barbaz]
                           foo                         barbaz

If you give a width specifier that is at least as big as your longest string, you should have no problems producing tabular output.

As for adding a comment block symbol (I assume you mean in addition to the comment line symbol #), there are no plans to do so at this time.

- eric

-- 03/22/2000 ericm
welch Closed ticket [218381ffff]. [History diff]2000-10-26 08:21:16
dgp Ticket [218381ffff]: 3 changes [History diff]2001-04-18 06:44:49
Log in (anonymous is fine) to add a comment.