diff --git a/src/SelectionManager.ts b/src/SelectionManager.ts index b3316ae6..1e501e93 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; }