Skip to content

Commit

Permalink
Prevent same TeX structure element from being multiple numbered
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Dec 7, 2024
1 parent cf2589c commit 4263608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/outline/structure/latex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function insertSubFile(structs: FileStructureCache, struct?: TeXElement[], trave
if (lw.root.file.path === undefined) {
return []
}
struct = struct ?? structs[lw.root.file.path] ?? []
struct = JSON.parse(JSON.stringify(struct ?? structs[lw.root.file.path] ?? [])) as TeXElement[]
traversed = traversed ?? [lw.root.file.path]
let elements: TeXElement[] = []
for (const element of struct) {
Expand Down

0 comments on commit 4263608

Please sign in to comment.