If I want to search for and replace characters within an XML Element, an additional (unwanted) line feed / carriage return is inserted.
Example
nb: the characters -[ and ]- replace the “<” and “>” characters - this website otherwise processes the XML example!
The existing element “-[MinDaysToExpiry]-7-[/MinDaysToExpiry]-” occurs 22 times in an XML document.
I want to replace it with “-[MinDaysToExpiry]-6-[/MinDaysToExpiry]-”
But a carriage return/line feed is always inserted at the end of the replacement string so I get:
"-[MinDaysToExpiry]-6
-[/MinDaysToExpiry]-"
How do I stop sublimetext from inserting the unwanted carriage return?