Limiting empty new lines to at most one.