We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f354dbd commit bdb1d17Copy full SHA for bdb1d17
1 file changed
tcl/tooledit.tcl
@@ -802,6 +802,7 @@ proc ::tooledit::writefile {filename} {
802
set allheader [concat $::te(autocolumns) $::te(allcolumns) comment]
803
804
foreach i $::te(items) {
805
+ set line ""
806
foreach h $allheader {
807
set j ""
808
set w $::te($h,width)
@@ -812,10 +813,10 @@ proc ::tooledit::writefile {filename} {
812
813
}
814
set value [string trim $::te(parm,$i,$h)]
815
if {"$value" != ""} {
- puts -nonewline $fd "$::te($h,tag)$value "
816
+ set line "$line $::te($h,tag)$value "
817
818
- puts $fd "" ;# new line
819
+ puts $fd [string trim "$line"]
820
821
watch stop
822
close $fd
0 commit comments