No need for hardcoding line endings for windows. Python handles this by default
This commit is contained in:
@@ -34,7 +34,7 @@ class MarkdownFile(TextFile):
|
||||
|
||||
def _doOpenFile(self, filePath):
|
||||
try:
|
||||
self.outFile = open(filePath,mode="w+")
|
||||
self.outFile = open(filePath,mode="wt+")
|
||||
except Exception as e:
|
||||
self.makeAlert(["Failed to open file.",str(e)], nwAlert.ERROR)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user