-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add quotes to description of Cake extensions #189
Comments
@pascalberger didn't you and I have a discussion about quotes and there was a reason you were not in favor of them? I vaguely remember you mentioning that quotes would have an impact on the web site generation process. In fact, I would have to go back in my history to double check but I think the discoverer used to include quotes and we decided to remove them. Is my memory wrong about this? |
Just my two cents. There are two cases where you must have quotes (either single or double) in a yaml file.
In any other case, it should be fine that there are no quotes in the description string. |
Evidently, it's more complicated than that: https://www.yaml.info/learn/quote.html |
Is this a bug with YamlDotNet not emitting the quotes correctly when there's a |
Currently the discoverer contains custom logic to generate yaml files and also custom logic to determine if quotes are necessary or not around strings. It has become clear to me that the "quote" logic is much more complex that I originally thought and there are too many exceptions, edge cases, etc. for me to continue maintaining this custom logic. As @AdmiringWorm pointed out (and as the article I linked above explains in more details), there are a multitude of complicated scenarios that must be taken into account when deciding whether to "quote" a string or not, and the AddinDiscoverer is clearly not taking all these cases into account. I think the best solution is to remove the custom logic from the discoverer and to rely on YamlDotNet's serialization logic. I did some testing and was able to observe that the quoting problem with strings containing Good news/Bad news
|
AddinDiscoverer is removing part of the description in the metadata for
Cake.UrlLoadDirective.Module
because it has the#
character in it.We confirmed that if the description was emitted with quotes in it, it would resolve the issue:
Relates to cake-build/website#1550 (comment) and cake-build/website#1883
The text was updated successfully, but these errors were encountered: