momo Thu Jul 31 08:53:53 2003 EDT Modified files: /phpdoc/scripts/rtlpatch HtmlExtParser.class.php Log: systemitem's Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.14 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.15 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.14 Wed Jul 30 09:48:18 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Thu Jul 31 08:53:53 2003 @@ -16,7 +16,7 @@ | Authors: Moshe Doron <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: HtmlExtParser.class.php,v 1.14 2003/07/30 13:48:18 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.15 2003/07/31 12:53:53 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -63,7 +63,14 @@ $this->ATE[$tmp-1]["dir"] = "ltr"; } } while($tmp); - + + //fix systemitem: + do{ + if($tmp = $this->get_element_id_by_rule(array("tag"=>"span","properties"=>array("class","systemitem"),"offset"=>($tmp+1)))){ + $this->ATE[$tmp-1]["dir"] = "ltr"; + } + } while($tmp); + //ltr literals: $tmp=0; do{ @@ -88,7 +95,7 @@ do{ if($tmp = $this->get_element_id_by_rule(array("tag"=>"tt","properties"=>array("class","filename"),"offset"=>($tmp+1)))){ $this->ATE[$tmp]["dir"] = "ltr"; - //if varname not before punctuation marks, add to eliminate the align issue came with dir=rtl: + //if filename not before punctuation marks, add to eliminate the align issue came with dir=rtl: if(isset($this->ATE[$tmp+3]["data"]{0})){ $ord = ord($this->ATE[$tmp+3]["data"]{0}); if($ord>65||$ord==32||$ord==40||$ord==41){//without (all the punctuation marks whitout space, and brackets). @@ -258,4 +265,4 @@ unset($this->EC); unset($this->EBT); } -} \ No newline at end of file +}
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php