@@ -35,7 +35,7 @@ function createCodeCellFromNotebookCell(cell: NotebookCellData): nbformat.ICodeC
35
35
const codeCell : any = {
36
36
cell_type : 'code' ,
37
37
execution_count : cell . executionSummary ?. executionOrder ?? null ,
38
- source : splitMultilineString ( cell . value . replace ( / \\ r \ \n / g, '\n' ) ) ,
38
+ source : splitMultilineString ( cell . value . replace ( / \r \n / g, '\n' ) ) ,
39
39
outputs : ( cell . outputs || [ ] ) . map ( translateCellDisplayOutput ) ,
40
40
metadata : cellMetadata ?. metadata || { } // This cannot be empty.
41
41
} ;
@@ -46,7 +46,7 @@ function createRawCellFromNotebookCell(cell: NotebookCellData): nbformat.IRawCel
46
46
const cellMetadata = cell . metadata ?. custom as CellMetadata | undefined ;
47
47
const rawCell : any = {
48
48
cell_type : 'raw' ,
49
- source : splitMultilineString ( cell . value . replace ( / \\ r \ \n / g, '\n' ) ) ,
49
+ source : splitMultilineString ( cell . value . replace ( / \r \n / g, '\n' ) ) ,
50
50
metadata : cellMetadata ?. metadata || { } // This cannot be empty.
51
51
} ;
52
52
if ( cellMetadata ?. attachments ) {
@@ -293,7 +293,7 @@ function createMarkdownCellFromNotebookCell(cell: NotebookCellData): nbformat.IM
293
293
const cellMetadata = cell . metadata ?. custom as CellMetadata | undefined ;
294
294
const markdownCell : any = {
295
295
cell_type : 'markdown' ,
296
- source : splitMultilineString ( cell . value . replace ( / \\ r \ \n / g, '\n' ) ) ,
296
+ source : splitMultilineString ( cell . value . replace ( / \r \n / g, '\n' ) ) ,
297
297
metadata : cellMetadata ?. metadata || { } // This cannot be empty.
298
298
} ;
299
299
if ( cellMetadata ?. attachments ) {
0 commit comments