Changeset 118

Show
Ignore:
Timestamp:
01/19/07 08:13:50 (2 years ago)
Author:
mikey
Message:

bugfix: get rid of empty lines in output

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/star/StarArchive.php

    r111 r118  
    6262    { 
    6363        $data = $file->getContents(); 
    64         if (substr($data, -1) != "\n") { 
    65             $data .= "\n"; 
    66         } 
    67          
    6864        $this->index[$id] = array('basename' => $file->getBaseName(), 
    6965                                  'path'     => $file->getPath(), 
     
    129125        } 
    130126         
    131         $this->writer->write("\n"); 
    132          
    133127        // write index 
    134128        foreach (array_keys($this->index) as $id) {