Evaluated proc condense_proc name { set p [info body $name]; string map "\t {}" [regsub -all \n [eachline [regsub -all { +} [regsub {^; +} [regsub -all {([^\{])\n} $p {\1; }] {}] { }] trim] {}] }