Skip to content

Commit 1cff32b

Browse files
committed
fix(component_differ): fix the repeated printing of component diffs to the terminal by unindenting the console print up one level
1 parent 26b7b10 commit 1cff32b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

nf_core/components/components_differ.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,16 @@ def print_diff(
296296
# Pretty print the diff using the pygments diff lexer
297297
syntax = Syntax("".join(diff), "diff", theme="ansi_dark", line_numbers=True)
298298
panel_group.append(Panel(syntax, title=str(file), title_align="left", padding=0))
299-
console.print(
300-
Panel(
301-
Group(*panel_group),
302-
title=f"[white]{str(component)}[/white]",
303-
title_align="left",
304-
padding=0,
305-
border_style="blue",
306-
box=box.HEAVY,
307-
)
299+
console.print(
300+
Panel(
301+
Group(*panel_group),
302+
title=f"[white]{str(component)}[/white]",
303+
title_align="left",
304+
padding=0,
305+
border_style="blue",
306+
box=box.HEAVY,
308307
)
308+
)
309309

310310
@staticmethod
311311
def per_file_patch(patch_fn: Union[str, Path]) -> dict[str, list[str]]:

0 commit comments

Comments
 (0)