diff --git a/src/notebook/Notebook.jl b/src/notebook/Notebook.jl index fc2a0a1182..bbd77b5d9b 100644 --- a/src/notebook/Notebook.jl +++ b/src/notebook/Notebook.jl @@ -94,7 +94,7 @@ function save_notebook(io, notebook::Notebook) print(io, c.code) print(io, _cell_suffix) end - + println(io, _cell_id_delimiter, "Cell order:") for c in notebook.cells delim = c.code_folded ? _order_delimiter_folded : _order_delimiter @@ -107,7 +107,7 @@ function save_notebook(notebook::Notebook, path::String) open(path, "w") do io save_notebook(io, notebook) end -end + end save_notebook(notebook::Notebook) = save_notebook(notebook, notebook.path) @@ -231,5 +231,8 @@ function move_notebook!(notebook::Notebook, newpath::String) if oldpath_tame != newpath_tame rm(oldpath_tame) end + if isdir("$oldpath_tame.assets") + mv("$oldpath_tame.assets", "$newpath_tame.assets") + end notebook end