mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-25 21:38:00 +01:00
trim lines
This commit is contained in:
parent
5d5d17a534
commit
9d5f0ce10b
1 changed files with 2 additions and 1 deletions
|
@ -11,8 +11,9 @@ foreach($dir_files as $file)
|
||||||
{
|
{
|
||||||
$curr_file = file("$dir/$file",FILE_IGNORE_NEW_LINES);
|
$curr_file = file("$dir/$file",FILE_IGNORE_NEW_LINES);
|
||||||
$files[$file] = $curr_file;
|
$files[$file] = $curr_file;
|
||||||
foreach($curr_file as $line)
|
foreach($curr_file as &$line)
|
||||||
{
|
{
|
||||||
|
$line = rtrim($line);
|
||||||
$w = strlen($line);
|
$w = strlen($line);
|
||||||
if ( $w> $maxw )
|
if ( $w> $maxw )
|
||||||
$maxw = $w;
|
$maxw = $w;
|
||||||
|
|
Loading…
Reference in a new issue