44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
foreach item $list {
lappend row "\"[sanitizeCString $item]\""
set rowString [join $row {, }]
set rowString "${prefix}${rowString}"
if {[string length $rowString] > $width} {
set row [list]
lappend lines $rowString
unset rowString
}
}
if {[info exists rowString]} {
lappend lines $rowString
}
|
|
|
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
foreach item $list {
lappend row "\"[sanitizeCString $item]\""
set rowString [join $row {, }]
set rowString "${prefix}${rowString}"
if {[string length $rowString] > $width} {
set row [list]
lappend lines "${rowString},"
unset rowString
}
}
if {[info exists rowString]} {
lappend lines $rowString
}
|