It adds it to the variable "current_line" unless it's a newline, in which case it ends the "current_line" and adds the "current_line" to "lines".

I wasn't really sure what the best name for this helper function would be. since it kind of does both... hmm, maybe that means it should be two different functions...