Merge pull request #738 from Tyriar/737_crlf_windows

Use crlf when copying on Windows
This commit is contained in:
Daniel Imms
2017-06-29 12:12:56 -07:00
committed by GitHub
+1 -1
View File
@@ -233,7 +233,7 @@ export class SelectionManager extends EventEmitter {
// and joining the array into a multi-line string.
const formattedResult = result.map(line => {
return line.replace(ALL_NON_BREAKING_SPACE_REGEX, ' ');
}).join('\n');
}).join(Browser.isMSWindows ? '\r\n' : '\n');
return formattedResult;
}