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

add string trim to inputs

File:
1 edited

Legend:

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

    r3513 r3647  
    191191# ----------------------------------------------------------------------
    192192itcl::body Rappture::ImageEntry::label {} {
    193     set label [$_owner xml get $_path.about.label]
    194     return [string trim $label]
     193    set label [string trim [$_owner xml get $_path.about.label]]
     194    return $label
    195195}
    196196
     
    204204# ----------------------------------------------------------------------
    205205itcl::body Rappture::ImageEntry::tooltip {} {
    206     set str [$_owner xml get $_path.about.description]
    207     return [string trim $str]
     206    set str [string trim [$_owner xml get $_path.about.description]]
     207    return $str
    208208}
    209209
Note: See TracChangeset for help on using the changeset viewer.