Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix schema docs console output truncating #2880

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- Strip out mention of "Nextflow Tower" and replace with "Seqera Platform" wherever possible
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.3.3 ([#2850](https://github.com/nf-core/tools/pull/2850))
- Fix issue with config resolution that was causing nested configs to behave unexpectedly ([#2862](https://github.com/nf-core/tools/pull/2862))
- Fix schema docs console output truncating ([#2880](https://github.com/nf-core/tools/pull/2880))

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

Expand Down
2 changes: 1 addition & 1 deletion nf_core/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def print_documentation(

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