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(task): handle carriage return in task description #27099

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju marked this pull request as ready for review November 27, 2024 00:36
@@ -721,7 +721,7 @@ fn print_available_tasks(
)?;
if let Some(description) = &desc.task.description {
let slash_slash = colors::italic_gray("//");
for line in description.split('\n') {
for line in description.lines() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This strips out the last line, but I think that's fine?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah.

@bartlomieju bartlomieju requested a review from dsherret November 27, 2024 00:37
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -721,7 +721,7 @@ fn print_available_tasks(
)?;
if let Some(description) = &desc.task.description {
let slash_slash = colors::italic_gray("//");
for line in description.split('\n') {
for line in description.lines() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah.

@bartlomieju bartlomieju enabled auto-merge (squash) November 27, 2024 00:46
@bartlomieju bartlomieju merged commit 4700f12 into denoland:main Nov 27, 2024
17 checks passed
@bartlomieju bartlomieju deleted the deno_task_newlines2 branch November 27, 2024 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants