if (newText.includes('\r\n')) {
const lines = newText.split('\r\n');
// Join the array elements without newline characters
newText = lines.join('');
}
if (newText.includes('\r\n')) {
const lines = newText.split('\r\n');
// Join the array elements without newline characters
newText = lines.join('');
}