Add a "tclesc[ape]" variant of hlistprop / tcl{,list,esc,escape}
And use it in gumxml.tcl
This commit is contained in:
@@ -51,7 +51,7 @@ proc make_nodes {path result indent} {
|
||||
set prefix [string repeat " " $indent]
|
||||
set newIndent [expr $indent + 2]
|
||||
set control "true"
|
||||
foreach {key rvalue} [string map {= " "} [hlistprop $path tcl]] {
|
||||
foreach {key rvalue} [string map {= " "} [hlistprop $path tclescape]] {
|
||||
set value [encode $rvalue]
|
||||
if {[string compare -nocase $key "control"] == 0} {
|
||||
if {[string compare -nocase $value "false"] == 0} {
|
||||
@@ -82,7 +82,7 @@ proc make_nodes {path result indent} {
|
||||
|
||||
proc property_elements {path indent} {
|
||||
set prefix [string repeat " " $indent]
|
||||
foreach {key rvalue} [string map {= " "} [hlistprop $path tcl]] {
|
||||
foreach {key rvalue} [string map {= " "} [hlistprop $path tclescape]] {
|
||||
set value [encode $rvalue]
|
||||
if {[string compare -nocase $key "control"] == 0} {continue}
|
||||
lappend proplist "$prefix<property id=\"$key\">\n"
|
||||
|
||||
Reference in New Issue
Block a user