diff --git a/src/Models/ThemeConfig/Conversion/PrepareLayer.ts b/src/Models/ThemeConfig/Conversion/PrepareLayer.ts index bab78599d..40cbc168c 100644 --- a/src/Models/ThemeConfig/Conversion/PrepareLayer.ts +++ b/src/Models/ThemeConfig/Conversion/PrepareLayer.ts @@ -262,7 +262,7 @@ export class AddQuestionBox extends DesugaringStep { } const usedLabels: Set = new Set() - + usedLabels.add("hidden") // hidden is a bit a special one. As we don't show it, we consider it 'consumed' too for (const { blacklist, whitelist } of questionBoxes) { if (whitelist.length > 0 && blacklist.length == 0) { // All questions from "whitelist" are guaranteed to be used here @@ -305,7 +305,7 @@ export class AddQuestionBox extends DesugaringStep { context.err( "Could not calculate a non-ambiguous leftover questions block. A {questions()}-special rendering is found which has both a whitelist and a blacklist; where the blacklist was not fully consumed by other tagRenderings\n\t" + - JSON.stringify(toEvaluate), + JSON.stringify(toEvaluate)+"\n\tConsumed labels are: "+Array.from(usedLabels).join(", "), ) } @@ -313,7 +313,7 @@ export class AddQuestionBox extends DesugaringStep { /* At this point, we know which question labels are not yet handled and which already are handled, and we * know there is no previous catch-all questions */ - usedLabels.add("hidden") + const question: QuestionableTagRenderingConfigJson = { id: "leftover-questions", labels: ["ignore-docs", "added_by_default"],