From 6c7272061cd221007f47e21b444090dc66622ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Wed, 11 Mar 2026 10:38:12 +0900 Subject: [PATCH] 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. --- src/lightpanda.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightpanda.zig b/src/lightpanda.zig index be9d727f..03bced65 100644 --- a/src/lightpanda.zig +++ b/src/lightpanda.zig @@ -120,7 +120,7 @@ pub fn fetch(app: *App, url: [:0]const u8, opts: FetchOpts) !void { .registry = ®istry, .page = page, .arena = page.call_arena, - .prune = false, + .prune = (mode == .semantic_tree_text), }; if (mode == .semantic_tree) {