From cfe22e6fd23944a4f7e1f0135d9ac2431fb810d5 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 29 Jun 2017 07:37:40 -0700 Subject: [PATCH] Use crlf when copying on Windows Fixes #737 --- src/SelectionManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SelectionManager.ts b/src/SelectionManager.ts index b3316ae6cd..1e501e93f7 100644 --- a/src/SelectionManager.ts +++ b/src/SelectionManager.ts @@ -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; }