Consitent end of file line endings for merge and split tools
This commit is contained in:
@@ -106,7 +106,7 @@ class GuiDocMerge(QDialog):
|
||||
theDoc = NWDoc(self.theProject, self.theParent)
|
||||
theText = ""
|
||||
for tHandle in finalOrder:
|
||||
theText += theDoc.openDocument(tHandle, False).rstrip()
|
||||
theText += theDoc.openDocument(tHandle, False).rstrip("\n")
|
||||
theText += "\n\n"
|
||||
|
||||
if self.sourceItem is None:
|
||||
|
||||
@@ -182,6 +182,7 @@ class GuiDocSplit(QDialog):
|
||||
)
|
||||
|
||||
theText = "\n".join(theLines[iStart:iEnd])
|
||||
theText = theText.rstrip("\n") + "\n\n"
|
||||
theDoc.openDocument(nHandle, False)
|
||||
theDoc.saveDocument(theText)
|
||||
theDoc.clearDocument()
|
||||
|
||||
Reference in New Issue
Block a user