Changeset 3673 for trunk/lang


Ignore:
Timestamp:
May 31, 2013 11:11:01 AM (9 years ago)
Author:
mmc
Message:

Added "string trim" back into the "get" function on the Tcl part
of the Rappture::library reader. This should fix many problems
that we were having with raw strings (e.g., leading and trailing
spaces on <layout>wizard</layout> was causing tools to go back
into side-by-side mode, choice values with leading/trailing space
seemed like unknown values, etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/scripts/library.tcl

    r3362 r3673  
    510510        return ""
    511511    }
    512     set string [$node text]
    513     if {$params(-decode) == "yes"} {
     512    set string [string trim [$node text]]
     513    if {$params(-decode)} {
    514514        set string [Rappture::encoding::decode -- $string]
    515     } else {
    516         set string [string trim $string]
    517515    }
    518516    return $string
Note: See TracChangeset for help on using the changeset viewer.