Ignore:
Timestamp:
May 14, 2013, 2:33:30 PM (11 years ago)
Author:
gah
Message:

add string trim to inputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/booleanentry.tcl

    r3635 r3647  
    145145# ----------------------------------------------------------------------
    146146itcl::body Rappture::BooleanEntry::label {} {
    147     set label [$_owner xml get $_path.about.label]
     147    set label [string trim [$_owner xml get $_path.about.label]]
    148148    if {"" == $label} {
    149149        set label "Boolean"
     
    161161# ----------------------------------------------------------------------
    162162itcl::body Rappture::BooleanEntry::tooltip {} {
    163     set str [$_owner xml get $_path.about.description]
     163    set str [string trim [$_owner xml get $_path.about.description]]
    164164    append str "\n\nClick to turn on/off"
    165     return [string trim $str]
     165    return $str
    166166}
    167167
Note: See TracChangeset for help on using the changeset viewer.