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 <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $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"];
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php