Skip to content

Commit c3261e5

Browse files
committed
fix newline replace
1 parent 82b4f2b commit c3261e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ class NotebookAccessibleViewContribution extends Disposable {
732732
? `Cell output ${i + 1} of ${viewCell.outputsViewModels.length}\n`
733733
: '';
734734
if (mimeType.endsWith('error')) {
735-
text = text.replace(/\\u001b\[[0-9;]*m/gi, '').replace('\\n', '\\\n');
735+
text = text.replace(/\\u001b\[[0-9;]*m/gi, '').replaceAll('\\n', '\n');
736736
}
737737
outputContent = outputContent.concat(`${index}${text}\n`);
738738
}

0 commit comments

Comments
 (0)