From 4babb9848452545f4df58eda0f682a495fcdae18 Mon Sep 17 00:00:00 2001 From: Snehil Shah Date: Fri, 28 Jun 2024 20:58:54 +0000 Subject: [PATCH] refactor: use `\n` instead of `\r\n` Signed-off-by: Snehil Shah --- lib/node_modules/@stdlib/repl/lib/completer_engine.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/lib/completer_engine.js b/lib/node_modules/@stdlib/repl/lib/completer_engine.js index b589166061d..00bacd6d9e5 100644 --- a/lib/node_modules/@stdlib/repl/lib/completer_engine.js +++ b/lib/node_modules/@stdlib/repl/lib/completer_engine.js @@ -284,7 +284,7 @@ setNonEnumerableReadOnly( CompleterEngine.prototype, '_drawOutput', function dra var i; // Draw the output grid: - output = '\r\n'; + output = '\n'; lineIndex = 0; whitespaces = 0; for ( i = 0; i < this._highlightedCompletions.length; i++ ) { @@ -296,7 +296,7 @@ setNonEnumerableReadOnly( CompleterEngine.prototype, '_drawOutput', function dra } if ( lineIndex >= columns ) { // Reached end of column, enter next line: - output += '\r\n'; + output += '\n'; lineIndex = 0; whitespaces = 0; } else { @@ -313,7 +313,7 @@ setNonEnumerableReadOnly( CompleterEngine.prototype, '_drawOutput', function dra whitespaces = this._widthOfColumn - this._completionsLength[ i ]; lineIndex += 1; } - output += '\r\n'; + output += '\n'; return output; });