Skip to content

Issue 833: Help Line Wrap - #1604

Merged
jonsequitur merged 3 commits into
dotnet:mainfrom
josephbateh:dragon-fruit-line-wrap
Jan 30, 2022
Merged

jonsequitur merged 3 commits into
dotnet:mainfrom
josephbateh:dragon-fruit-line-wrap

Conversation

@josephbateh

@josephbateh josephbateh commented Jan 29, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #833

  • Add support for multiple tags in help text xml documentation
  • Update command line tests to support no xml, xml without para tags, and xml with para tags

- Add support for multiple <para> tags in help text xml documentation
- Update command line tests to support no xml, xml without para tags, and xml with para tags
@dnfadmin

dnfadmin commented Jan 29, 2022 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@josephbateh josephbateh mentioned this pull request Jan 29, 2022
@baronfel

Copy link
Copy Markdown
Member

I'll let @jonsequitur speak for the code, but I wanted to let you know about a useful GitHub feature: if you add line like 'Fixes #ISSUENUMBER' or 'Closes #ISSUENUMBER' to the description or a comment of your PR, GitHub will associate the two and close the issue when the PR merges. Like this:

Closes #833

- Remove assertion causing issues

[Fact]
public async Task It_shows_help_text_based_on_XML_documentation_comments()
public async Task It_shows_help_text_based_on_XML_documentation_comments_without_para()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test naming nitpick. 🤓 I would keep this test name the same, since the scenario is unchanged. The new test is adding detail to that scenario so something like When_XML_documentation_comment_contains_a_para_tag_then_help_is_written_with_a_newline would be good to bring attention to the expected behavior.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

- Replace '\n' with Environment.NewLine to fix platform specific line ending issues
- Update test names
@jonsequitur

Copy link
Copy Markdown
Contributor

Thanks, @josephbateh!

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.

Help - line wrap

4 participants