From 06bace1fcf7ec79b3f2df8588400f56b54476125 Mon Sep 17 00:00:00 2001 From: Barbara Valdez <34872381+barbaravaldez@users.noreply.github.com> Date: Sun, 7 Feb 2021 20:17:30 -0800 Subject: [PATCH] replace backlash when moving notebooks on windows (#14186) --- extensions/notebook/src/book/bookTocManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/notebook/src/book/bookTocManager.ts b/extensions/notebook/src/book/bookTocManager.ts index 72b47150c7..7f1a989fbd 100644 --- a/extensions/notebook/src/book/bookTocManager.ts +++ b/extensions/notebook/src/book/bookTocManager.ts @@ -346,7 +346,7 @@ export class BookTocManager implements IBookTocManager { this.newSection = sectionTOC; } fileName = fileName === undefined ? notebookPath.name : path.parse(fileName).name; - this.newSection.file = path.sep.concat(fileName); + this.newSection.file = path.sep.concat(fileName).replace(/\\/g, '/'); this.newSection.title = notebook.book.title; if (book.version === BookVersion.v1) { // here we only convert if is v1 because we are already using the v2 notation for every book that we read.