Skip to content

Commit a6c2808

Browse files
authored
Merge pull request nf-core#2880 from awgymer/2865-fix-schema-docs-console-printing
Fix schema docs console output truncating
2 parents cdd5f43 + 629e85e commit a6c2808

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
- Strip out mention of "Nextflow Tower" and replace with "Seqera Platform" wherever possible
3939
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.3.3 ([#2850](https://github.com/nf-core/tools/pull/2850))
4040
- Fix issue with config resolution that was causing nested configs to behave unexpectedly ([#2862](https://github.com/nf-core/tools/pull/2862))
41+
- Fix schema docs console output truncating ([#2880](https://github.com/nf-core/tools/pull/2880))
4142
- fix: ensure path object converted to string before stripping quotes ([#2878](https://github.com/nf-core/tools/pull/2878))
4243

4344
## [v2.13.1 - Tin Puppy Patch](https://github.com/nf-core/tools/releases/tag/2.13) - [2024-02-29]

nf_core/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def print_documentation(
494494

495495
if not output_fn:
496496
console = rich.console.Console()
497-
console.print("\n", Syntax(prettified_docs, format), "\n")
497+
console.print("\n", Syntax(prettified_docs, format, word_wrap=True), "\n")
498498
else:
499499
if Path(output_fn).exists() and not force:
500500
log.error(f"File '{output_fn}' exists! Please delete first, or use '--force'")

0 commit comments

Comments
 (0)