diff options
author | Urban Müller | 2011-11-18 14:24:15 +0000 |
---|---|---|
committer | Urban Müller | 2011-11-18 14:24:15 +0000 |
commit | 326f0dad5c9bebe408595a453d92194cd4eb932e (patch) | |
tree | 14c22e2bdd00d473eb2f5b40a7ac24c16b752908 | |
parent | ab213d51be45542d1346baa1887af153aa312aea (diff) | |
download | itools-326f0dad5c9bebe408595a453d92194cd4eb932e.tar.gz itools-326f0dad5c9bebe408595a453d92194cd4eb932e.tar.bz2 itools-326f0dad5c9bebe408595a453d92194cd4eb932e.zip |
dont trim trailing whitespace
-rw-r--r-- | it_pipe.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_pipe.class b/it_pipe.class index f9e64e2..f1cdf76 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -15,7 +15,7 @@ function __construct($p = array()) if ($p['data']) $this->lines = $p['data']; else if ($p['cmd']) - $this->lines = strlen($data = it::exec($p['cmd'], $p['args'])) ? explode("\n", rtrim($data)) : array(); + $this->lines = strlen($data = it::exec($p['cmd'], $p['args'])) ? explode("\n", rtrim($data, "\n")) : array(); else foreach ((array)($p['fn'] ? $p['fn'] : "php://stdin") as $fn) $this->lines = array_merge((array)$this->lines, file($fn, FILE_IGNORE_NEW_LINES)); |