cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php

From: Date: Mon, 28 Jul 2003 10:39:19 +0000
Subject: cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355488@lists.php.net to get a copy of this message
momo Mon Jul 28 06:39:19 2003 EDT Modified files: /phpdoc/scripts/rtlpatch HtmlExtParser.class.php Log: toc align Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.10 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.11 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.10 Tue Jul 22 09:00:21 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Mon Jul 28 06:39:19 2003 @@ -16,7 +16,7 @@ | Authors: Moshe Doron <momo@php.net> | +----------------------------------------------------------------------+ - $Id: HtmlExtParser.class.php,v 1.10 2003/07/22 13:00:21 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.11 2003/07/28 10:39:19 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -100,15 +100,14 @@ } } while($tmp); - /* + //fix for TOC - $tmp=0; - do{ - if($tmp = $this->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","TOC"),"offset"=>($tmp+1)))){ - $this->ATE[$tmp]["dir"] = "ltr"; + if($tmp = $this->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","TOC"),"offset"=>(0)))){ + $tocend = $this->ECE[$tmp]; + while (($tmp = $this->get_element_id_by_rule(array("tag"=>"a","offset"=>($tmp+1))))&&($tmp<$tocend)){ + $this->ATE[$tmp]["dir"] = "rtl"; } - } while($tmp); - */ + } //rtl all the divs $div = $HEType["div"];

« previous php.doc (#969355488) next »