Skip to content

Commit 4942d71

Browse files
authored
Merge pull request #3759 from awgymer/3747-fix-diff-printing
2 parents 973169f + df37228 commit 4942d71

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
- Fix backwards compatibility with python 3.9 in use of Enum ([#3736](https://github.com/nf-core/tools/pull/3736))
5858
- Fix downloads: temporary files not moved and cleaned up correctly after singularity pull ([#3749](https://github.com/nf-core/tools/pull/3749))
5959
- impr devcontainer: Add hostRequirements to run with 4CPUs and 16GB ram by default ([#3746](https://github.com/nf-core/tools/pull/3746))
60+
- Fix diff printing to terminal ([#3759](https://github.com/nf-core/tools/pull/3759))
6061
- Add .nf-test/ to prettier ignore list ([#3776](https://github.com/nf-core/tools/pull/3776))
6162
- Update dependency prompt_toolkit to <=3.0.52 ([#3783](https://github.com/nf-core/tools/pull/3783))
6263
- Update python:3.13-slim Docker digest to 3a6ead7 ([#3786](https://github.com/nf-core/tools/pull/3786))

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)