Browse Source

textblock table header colspans

master
Julian Noble 4 months ago
parent
commit
d9d771100b
  1. 11
      src/bootsupport/modules/punk/lib-0.1.1.tm
  2. 1914
      src/bootsupport/modules/textblock-0.1.1.tm
  3. 13
      src/modules/punk-0.1.tm
  4. 11
      src/modules/punk/lib-999999.0a1.0.tm
  5. 1914
      src/modules/textblock-999999.0a1.0.tm

11
src/bootsupport/modules/punk/lib-0.1.1.tm

@ -197,6 +197,17 @@ namespace eval punk::lib {
#[list_begin definitions] #[list_begin definitions]
proc dict_getdef {dictValue args} {
if {[llength $args] < 1} {
error {wrong # args: should be "dict_getdef dictValue ?key ...? key default"}
}
set keys [lrange $args -1 end-1]
if {[dict exists $dictValue {*}$keys]} {
return [dict get $dictValue {*}$keys]
} else {
return [lindex $args end]
}
}
#proc sample1 {p1 n args} { #proc sample1 {p1 n args} {
# #*** !doctools # #*** !doctools

1914
src/bootsupport/modules/textblock-0.1.1.tm

File diff suppressed because it is too large Load Diff

13
src/modules/punk-0.1.tm

@ -7056,7 +7056,7 @@ namespace eval punk {
] ]
set t [textblock::class::table new -show_seps 0] set t [textblock::class::table new -show_seps 0]
$t add_column -header "Topic" $t add_column -headers [list "Topic"]
$t add_column $t add_column
foreach {k v} $topics { foreach {k v} $topics {
$t add_row [list $k $v] $t add_row [list $k $v]
@ -7216,17 +7216,6 @@ namespace eval punk {
interp alias {} a? {} punk::console::code_a? interp alias {} a? {} punk::console::code_a?
proc dict_getdef {dictValue args} {
if {[llength $args] < 2} {
error {wrong # args: should be "dict_getdef dictValue ?key ...? key default"}
}
set keys [lrange $args 0 end-1]
if {[dict exists $dictValue {*}$keys]} {
return [dict get $dictValue {*}$keys]
} else {
return [lindex $args end]
}
}

11
src/modules/punk/lib-999999.0a1.0.tm

@ -197,6 +197,17 @@ namespace eval punk::lib {
#[list_begin definitions] #[list_begin definitions]
proc dict_getdef {dictValue args} {
if {[llength $args] < 1} {
error {wrong # args: should be "dict_getdef dictValue ?key ...? key default"}
}
set keys [lrange $args -1 end-1]
if {[dict exists $dictValue {*}$keys]} {
return [dict get $dictValue {*}$keys]
} else {
return [lindex $args end]
}
}
#proc sample1 {p1 n args} { #proc sample1 {p1 n args} {
# #*** !doctools # #*** !doctools

1914
src/modules/textblock-999999.0a1.0.tm

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save