Trim the He-3 response before splitting to remove empty list elements
Damn you, TCL ...
This commit is contained in:
@ -43,7 +43,7 @@ driver he3_polanal = {
|
||||
%%}
|
||||
|
||||
code rdValue = {%%
|
||||
set dlist [split ${data}]
|
||||
set dlist [split [string trim ${data}]]
|
||||
if {[llength ${dlist}] < 2} {
|
||||
sct geterror "Syntax Error: '${data}'"
|
||||
error "[sct geterror]"
|
||||
|
@ -108,7 +108,7 @@ proc ::scobj::he3_polanal::rdValue {tc_root} {
|
||||
error "[sct geterror]"
|
||||
}
|
||||
# rdValue hook code starts
|
||||
set dlist [split ${data}]
|
||||
set dlist [split [string trim ${data}]]
|
||||
if {[llength ${dlist}] < 2} {
|
||||
sct geterror "Syntax Error: '${data}'"
|
||||
error "[sct geterror]"
|
||||
|
Reference in New Issue
Block a user