- switch ($item) {
- case ' ': $text .= $t_e; break;
- case '+': $text .= $u_ht; break;
- case '-': $text .= $u_h; break;
- case '|': $text .= $u_l; break;
- case '`': $text .= $u_vt; break;
- case 't': $text .= $u_f; break;
- default:
+ if ($item == ' ') {
+ $text .= $t_e;
+ } else if (is_array($item)) {
+ $head =& Banana::$spool->overview[$item[1]];
+ switch ($item[0]) {
+ case '+': $text .= $head->isread ? $r_ht : $u_ht; break;
+ case '-': $text .= $head->isread ? $r_h : $u_h; break;
+ case '|': $text .= $head->isread ? $r_l : $u_l; break;
+ case '`': $text .= $head->isread ? $r_vt : $u_vt; break;
+ case 't': $text .= $head->isread ? $r_f : $u_f; break;
+ }
+ } else {