Trim whitespace from description when generating motor configuration.

This commit is contained in:
Ferdi Franceschini
2014-06-10 19:16:53 +10:00
parent e2fae66199
commit 96526c7866

View File

@ -125,7 +125,7 @@ proc mk_motconf {mot fh absEnc posnum posit_list} {
puts $fh "# $mot configuration"
if [info exists ::${mot}_attarr(description)] {
puts $fh "# [set ::${mot}_attarr(description)]"
puts $fh "# [string trim [set ::${mot}_attarr(description)]]"
}
if [info exists ::${mot}_attarr(axis_number)] {
puts $fh "# Axis number [set ::${mot}_attarr(axis_number)]"