Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Request #8190 TOC enclosing block fix
Submitted: 2006-07-11 21:01 UTC
From: bjs5075 at rit dot edu Assigned:
Status: Open Package: Text_Wiki (version CVS)
PHP Version: 5.1.4 OS: Debian etch
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 12 + 40 = ?

 
 [2006-07-11 21:01 UTC] bjs5075 at rit dot edu (Brian Sipos)
Description: ------------ The container for the table-of-contents block should be either a or a
, but not both. The current method can't apply given styles to the
if it is enclosed within the table. This patch gives the TOC a single enclosing element and applies the style to that element, so that you can have things like right-aligned floating TOC blocks. It does not change the interface to the TOC markup/stylesheet. --- Render/Xhtml/Toc.php~ 2006-07-11 09:11:55.000000000 -0400 +++ Render/Xhtml/Toc.php 2006-07-11 09:22:21.000000000 -0400 @@ -60,14 +60,15 @@ $css = $this->getConf('css_list'); $html = ''; - // collapse div within a table? + // container is collapsed in table or div if ($this->getConf('collapse')) { - $html .= '
'; - $html .= "
\n"; + $html .= 'getConf('collapse')) { + $html .= "
\n"; + } + + // add the title, and done $html .= $this->getConf('title'); return $html; break; case 'list_end': - if ($this->getConf('collapse')) { - return "\n\n
\n\n"; - } else { + if ($this->getConf('collapse')) { + return "\n
\n\n"; + } else { return "\n
\n\n"; } break;

Comments