Multiple list fix

There was a problem when there were multiple list elements following each other
without a newline break, if they had spaces preceding them.