momo Wed Jul 30 09:48:18 2003 EDT Modified files: /phpdoc/scripts/rtlpatch HtmlExtParser.class.php Log: filenames following the varnames. Index: phpdoc/scripts/rtlpatch/HtmlExtParser.class.php diff -u phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.13 phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.14 --- phpdoc/scripts/rtlpatch/HtmlExtParser.class.php:1.13 Wed Jul 30 06:54:12 2003 +++ phpdoc/scripts/rtlpatch/HtmlExtParser.class.php Wed Jul 30 09:48:18 2003 @@ -16,7 +16,7 @@ | Authors: Moshe Doron <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: HtmlExtParser.class.php,v 1.13 2003/07/30 10:54:12 momo Exp $ + $Id: HtmlExtParser.class.php,v 1.14 2003/07/30 13:48:18 momo Exp $ */ class CHtmlExtParse extends CHtmlParse{ @@ -83,12 +83,18 @@ } } while($tmp); - //fix filenames: $tmp=0; 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(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). + $this->ATE[$tmp]["chaintoclose"] = " "; + } + } } } while($tmp);
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php