text.split("\n").reject{|s|(s=="")}.each_with_index{|l, i| p [i, l]}