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

Separate Description on Gallery like it was specified in the NuSpec #525

Merged
merged 2 commits into from
Jun 14, 2012

Conversation

ferventcoder
Copy link
Contributor

This is the same behavior that has been implemented for the release notes section.

An example here:

Without splitting the description into lines: http://nuget.org/packages/chocolatey
With the description split: http://chocolatey.org/packages/chocolatey

Of course that description can now get some cleanup since there is no need to separate sections with || anymore.

@@ -66,7 +66,10 @@
<h1>@Model.Title</h1>
<h2>@Model.Version</h2>
</hgroup>
<p>@Model.Description</p>
@foreach (var line in Model.Description.Split('\n'))
Copy link
Contributor

Choose a reason for hiding this comment

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

This will throw if Description is null on the model coming out of EF. Maybe .ToStringSafe().Split() instead? Or wrap it in a IsNull check like we do with release notes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I missed the is null bits in my first look down there. Description is a required element but it could be empty. Let me update...

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, we require it now, but on the old gallery you could push a package without it, and there are packages in the database with null descriptions. :(

half-ogre added a commit that referenced this pull request Jun 14, 2012
Separate Description on Gallery like it was specified in the NuSpec
@half-ogre half-ogre merged commit 6c3d481 into NuGet:master Jun 14, 2012
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