Permalink
Browse files

Allow compact output one line at time

  • Loading branch information...
1 parent e99bf74 commit 0d922520b7de9b1e6e3d89acbad0babb8a54ac1b @martinos committed Jan 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/rubyc
View
@@ -100,7 +100,7 @@ class Rubyc < Thor
desc :compact, "Remove empty lines"
def compact
- puts STDIN.select{|line| line.strip != ""}
+ STDIN.each{|line| puts line if line.strip != ""}
end
desc :merge, "Merge consecutive lines"

0 comments on commit 0d92252

Please sign in to comment.