Fix newline issues with Previous/Next