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_Mediawiki » Bug #8188

TOC block style

Details

Request #8188TOC block style
Submitted2006-07-11 20:48 UTC
Frombjs5075 at rit dot edu
StatusBogus
PackageText_Wiki_Mediawiki
PHP Version5.1.4
OSDebian etch
Roadmaps(Not assigned)

Comments

[2006-07-11 20:48 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
 [2006-07-11 20:58 UTC] bjs5075 at rit dot edu
I am dumb, I should have submitted this to Text_Wiki proper, not Text_Wiki_Mediawiki.. I will close this and resubmit.

PRIVACY POLICY | CREDITS

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

Bandwidth and hardware provided by:
eUKhost

[2006-07-11 20:58 UTC] bjs5075 at rit dot edu

I am dumb, I should have submitted this to Text_Wiki proper, not Text_Wiki_Mediawiki.. I will close this and resubmit.