remove extra space added to nodes.conf and widgets.conf, fixes bug #251

(Boeing r1853)
This commit is contained in:
ahrenholz 2014-07-18 16:49:26 +00:00
parent 9d4d4edbde
commit e5a1788991
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ proc writeNodesConf { } {
set header "$header type metadata}"
puts $f $header
foreach i [lsort -integer [array names g_node_types]] {
puts $f "$i { $g_node_types($i) }"
puts $f "$i { [string trim $g_node_types($i)] }"
}
close $f
}

View file

@ -454,7 +454,7 @@ proc writeWidgetsConf { } {
set header "# widgets.conf: CORE Observer Widgets customization file."
puts $f $header
foreach w [lsort -integer [array names widgets_obs]] {
puts $f "$w { $widgets_obs($w) }"
puts $f "$w { [string trim $widgets_obs($w)] }"
}
close $f
}