# Method to get the next FASTA entry form an ios and return this
# as a Seq object. If no entry is found or eof then nil is returned.
def get_entry
- block = @io.gets($/ + '>')
+ block = nil
+
+ while block = @io.gets($/ + '>') and block.chomp($/ + '>').empty?
+ end
+
return nil if block.nil?
block.chomp!($/ + '>')