cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
| From: | Moshe Doron | Date: | Wed, 30 Jul 2003 10:54:13 +0000 |
| Subject: | cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969355500@lists.php.net to get a copy of this message | ||
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 <momo@php.net> |
+----------------------------------------------------------------------+
- $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";