I have developed a plugin to format some javascript code nested in a JSON object (itself nested in an XML file). As part of the plugin, I find all instances of “\\n” and replace with “\n”.
Upon updating Sublime to 4169 this replacement does not work. It’s working fine in 4152. See the code sample below that is causing the problem:
found = newfile.find_all('\\\\n')
for region in reversed(found):
newfile.replace(edit, region, '\n')
find_all() correctly returns a list of regions, but replace() doesn’t do any replacement.