Skip to content

Commit

Permalink
refactor: use \n instead of \r\n
Browse files Browse the repository at this point in the history
Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
  • Loading branch information
Snehil-Shah committed Jun 28, 2024
1 parent 535986f commit 4babb98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/repl/lib/completer_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++ ) {
Expand All @@ -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 {
Expand All @@ -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;
});

Expand Down

0 comments on commit 4babb98

Please sign in to comment.