momo Wed Jul 30 06:54:13 2003 EDT Modified files: /phpdoc/scripts/rtlpatch HtmlExtParser.class.php Log: better warnning && caution Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.12 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.13 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.12 Tue Jul 29 06:07:47 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Wed Jul 30 06:54:12 2003 @@ -16,7 +16,7 @@ | Authors: Moshe Doron <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: HtmlExtParser.class.php,v 1.12 2003/07/29 10:07:47 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.13 2003/07/30 10:54:12 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -108,7 +108,17 @@ } while($tmp); //fix warnning boxes: - if($tmp = $this->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","warning"),"offset"=>(0)))){ + $tmp=0; + while($tmp = $this->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","warning"),"offset"=>($tmp+1)))){ + $cond = array("tag"=>"td","properties"=>array("align","LEFT"),"offset"=>($tmp+1)); + if (($td = $this->get_element_id_by_rule($cond)) && ($td<$tocend = $this->ECE[$tmp])){ + $this->ATE[$td]["align"] = "right"; + } + } + + //fix caution boxes: + $tmp=0; + while($tmp = $this->get_element_id_by_rule(array("tag"=>"div","properties"=>array("class","caution"),"offset"=>($tmp+1)))){ $cond = array("tag"=>"td","properties"=>array("align","LEFT"),"offset"=>($tmp+1)); if (($td = $this->get_element_id_by_rule($cond)) && ($td<$tocend = $this->ECE[$tmp])){ $this->ATE[$td]["align"] = "right";
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php