cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php

From: Date: Wed, 30 Jul 2003 13:48:18 +0000
Subject: cvs: phpdoc /scripts/rtlpatch HtmlExtParser.class.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355501@lists.php.net to get a copy of this message
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 <momo@php.net> | +----------------------------------------------------------------------+ - $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 &nbsp; 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"] = "&nbsp;"; + } + } } } while($tmp);

« previous php.doc (#969355501) next »