remove new lines when panning