-
Notifications
You must be signed in to change notification settings - Fork 290
Auto-help has unsightly blank lines #244
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
Comments
I can confirm that that patch works to fix this bug. I forked the repo and built a new version with that one-line change, and tested my program against it. And with that change, the superfluous blank lines no longer show up. |
📎 Please read: #250. Thanks for collaboration and patience! 😅 |
Turned my patch above into a pull request. I used this in my project and it does what I expected: if my AssemblyLicense and AssemblyUsage attributes specify just one line, then just one line is all I get:
|
Merged. Unfortunately, @gsscoder holds the keys to the NuGet kingdom and he is away for some time (#271) so there won't be an official package until he gets back. However, NuGet does offer multiple package sources so if you create you own (with the same package name), give it a minor version bump, and put it in your custom NuGet source (we use a simple file share!) you should be able to "upgrade" through the VS UI and then upgrade again once a new official package goes out. The snk is part of the repo so you shouldn't have any Strong Naming issues even when creating your own package. |
If I define AssemblyLicense and/or AssemblyUsage in my AssemblyInfo.cs file, the automatically-produced
--help
text has unsightly blank lines:I believe this is the result of a bug in src/CommandLine/Text/MultiLineTextAttribute.cs, where AddToHelpText adds all lines instead of only the non-blank lines. Here's a patch (UNTESTED so far) that I believe may fix the problem:
The text was updated successfully, but these errors were encountered: