Ulrich Fischer - 2005-07-04

Hi,

I do not know, if this is correct, but it seem's to do it right:

#
#-----[ OPEN ]------------------------------------------
#

reader.php

#
#-----[ FIND ]------------------------------------------
#

$len = ($asciiEncoding)? $numChars : $numChars*2;
if ($spos + $len < $limitpos) {
$retstr = substr($this->data, $spos, $len);
$spos += $len;
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

$len = ($asciiEncoding)? $numChars : $numChars*2;
if ($spos + $len < $limitpos) {
$retstr = substr($this->data, $spos, $len);
// insert line-break
$retstr = str_replace("\n","<br />",$retstr);
$spos += $len;
}

Would that be correct?
Could it be a new feature?

Thank's for your good work.

Greetings

sunfish