fix trailing newline in clipboard
fix trailing newline in clipboard