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)
|
theDoc = NWDoc(self.theProject, self.theParent)
|
||||||
theText = ""
|
theText = ""
|
||||||
for tHandle in finalOrder:
|
for tHandle in finalOrder:
|
||||||
theText += theDoc.openDocument(tHandle, False).rstrip()
|
theText += theDoc.openDocument(tHandle, False).rstrip("\n")
|
||||||
theText += "\n\n"
|
theText += "\n\n"
|
||||||
|
|
||||||
if self.sourceItem is None:
|
if self.sourceItem is None:
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ class GuiDocSplit(QDialog):
|
|||||||
)
|
)
|
||||||
|
|
||||||
theText = "\n".join(theLines[iStart:iEnd])
|
theText = "\n".join(theLines[iStart:iEnd])
|
||||||
|
theText = theText.rstrip("\n") + "\n\n"
|
||||||
theDoc.openDocument(nHandle, False)
|
theDoc.openDocument(nHandle, False)
|
||||||
theDoc.saveDocument(theText)
|
theDoc.saveDocument(theText)
|
||||||
theDoc.clearDocument()
|
theDoc.clearDocument()
|
||||||
|
|||||||
Reference in New Issue
Block a user