PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Wiki » Bug #8190

TOC enclosing block fix

Details

Request #8190TOC enclosing block fix
Submitted2006-07-11 21:01 UTC
Frombjs5075 at rit dot edu
StatusOpen
PackageText_Wiki
PHP Version5.1.4
OSDebian etch
Roadmaps(Not assigned)

Comments

[2006-07-11 21:01 UTC] bjs5075 at rit dot edu

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

PRIVACY POLICY | CREDITS

Copyright © 2001-2026 The PHP Group All rights reserved.

Bandwidth and hardware provided by:
eUKhost