cli: enable pruning for semantic_tree_text dump mode

Previously, semantic_tree_text hardcoded prune = false, which bypassed the structural node filters and allowed empty none nodes to pollute the root of the text dump.
This commit is contained in:
Adrià Arrufat
2026-03-11 10:38:12 +09:00
parent 4f262e5bed
commit 6c7272061c

View File

@@ -120,7 +120,7 @@ pub fn fetch(app: *App, url: [:0]const u8, opts: FetchOpts) !void {
.registry = &registry, .registry = &registry,
.page = page, .page = page,
.arena = page.call_arena, .arena = page.call_arena,
.prune = false, .prune = (mode == .semantic_tree_text),
}; };
if (mode == .semantic_tree) { if (mode == .semantic_tree) {