]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
tidy up
authorMarc Foley <m.foley.88@gmail.com>
Tue, 21 Jan 2025 15:16:59 +0000 (15:16 +0000)
committerMarc Foley <m.foley.88@gmail.com>
Tue, 21 Jan 2025 15:37:02 +0000 (15:37 +0000)
.ci/tags.html

index ea20d7ad2e2736945f2eb0b7cfd1000f1a725679..3380df1f76928603b90cb1932cbd30b4ed0a8ba5 100644 (file)
         if (this.axes.length === 0) {
             return baseUrl + this.name.replace(" ", "+");
         }
-        let tag = this.toTag();
+        let tag = this.toTag().replace(" ", "+");
         return baseUrl + tag.replace(/\|/g, ",");
     }
 
         }
         this.seen.add(tagKey);
         this.tags.push(newFamily);
-        this.history.push(`+ ${newFamily.name},${newFamily.category},${newFamily.score}`);
+        this.history.push(`+ ${newFamily.displayName},${newFamily.category},${newFamily.score}`);
         // Remove all axis inputs for the next family
         this.newAxes = [];
 
       removeFamily(Family) {
         this.isEdited = true;
         this.tags = this.tags.filter((t) => t !== Family);
-        this.history.push(`- ${Family.name},${Family.category},${Family.score}`);
+        let tagKey = `${Family.name},${Family.category}`;
+        this.seen.delete(tagKey);
+        this.history.push(`- ${Family.displayName},${Family.category},${Family.score}`);
       },
       tagsToCSV() {
         this.RemovePlaceHolderTags();