SemanticTree: enable prune by default

This commit is contained in:
Adrià Arrufat
2026-03-18 11:25:34 +09:00
parent 015edc3848
commit e1b14a6833
2 changed files with 2 additions and 3 deletions

View File

@@ -65,13 +65,12 @@ fn getSemanticTree(cmd: anytype) !void {
.registry = &bc.node_registry,
.page = page,
.arena = cmd.arena,
.prune = params.prune orelse false,
.prune = params.prune orelse true,
.interactive_only = params.interactiveOnly orelse false,
};
if (params.format) |format| {
if (format == .text) {
st.prune = params.prune orelse true;
var aw: std.Io.Writer.Allocating = .init(cmd.arena);
defer aw.deinit();
try st.textStringify(&aw.writer);