Skip to content

Commit 3e10e0c

Browse files
committed
oops
1 parent 2f43876 commit 3e10e0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ipynb/src/serializers.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function createCodeCellFromNotebookCell(cell: NotebookCellData): nbformat.ICodeC
3535
const codeCell: any = {
3636
cell_type: 'code',
3737
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')),
3939
outputs: (cell.outputs || []).map(translateCellDisplayOutput),
4040
metadata: cellMetadata?.metadata || {} // This cannot be empty.
4141
};
@@ -46,7 +46,7 @@ function createRawCellFromNotebookCell(cell: NotebookCellData): nbformat.IRawCel
4646
const cellMetadata = cell.metadata?.custom as CellMetadata | undefined;
4747
const rawCell: any = {
4848
cell_type: 'raw',
49-
source: splitMultilineString(cell.value.replace(/\\r\\n/g, '\n')),
49+
source: splitMultilineString(cell.value.replace(/\r\n/g, '\n')),
5050
metadata: cellMetadata?.metadata || {} // This cannot be empty.
5151
};
5252
if (cellMetadata?.attachments) {
@@ -293,7 +293,7 @@ function createMarkdownCellFromNotebookCell(cell: NotebookCellData): nbformat.IM
293293
const cellMetadata = cell.metadata?.custom as CellMetadata | undefined;
294294
const markdownCell: any = {
295295
cell_type: 'markdown',
296-
source: splitMultilineString(cell.value.replace(/\\r\\n/g, '\n')),
296+
source: splitMultilineString(cell.value.replace(/\r\n/g, '\n')),
297297
metadata: cellMetadata?.metadata || {} // This cannot be empty.
298298
};
299299
if (cellMetadata?.attachments) {

0 commit comments

Comments
 (0)