Skip to content

Commit

Permalink
Deduplicate package option dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Oct 14, 2024
1 parent 7f4f1ff commit 73c4511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/parse-cwl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ function parseKeys(pkg: PackageRaw, lines: string[], tag: string): void {
function assignKeys(pkg: PackageRaw, tag: string) {
for (let context of tag.split(',')) {
if (context.startsWith('\\documentclass') || context.startsWith('\\usepackage')) {
pkg.args.push(tag)
if (!pkg.args.includes(tag)) {
pkg.args.push(tag)
}
continue
}
// \includepdf,includepdfmerge,\includepdfset => \includepdf,\includepdfmerge,\includepdfset
Expand Down

0 comments on commit 73c4511

Please sign in to comment.