Use platform-specific line breaks to copy multiline text to clipboard