Skip to content

Commit 62a714e

Browse files
committed
feat(flow): update text label to handle empty lines instead of color style
1 parent 125d409 commit 62a714e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/cocoindex/flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def _render_spec(self, verbose: bool = False) -> Tree:
484484
tree = Tree(f"Flow: {self.name}", style="cyan")
485485

486486
def build_tree(label: str, lines: list):
487-
node = Tree(label, style="bold magenta" if lines else "cyan")
487+
node = Tree(label=label if lines else label + " None", style="cyan")
488488
for line in lines:
489489
child_node = node.add(Text(line.content, style="yellow"))
490490
child_node.children = build_tree("", line.children).children

0 commit comments

Comments
 (0)