Newline handling for 'pyel' function