The example you give is an accurate rendering of the description that is present in the snapcraft.yaml - as per http://yaml-multiline.info/ Inkscape probably wants to use > instead of | for their multi-line description.
I just want to point out that it seems many/most snaps have not used â>â for their descriptions. If you browse the snap store you will see that every second snap or so suffers from this.
That wonât actually fix it though, surely? The store description pasted into the webUI takes priority over any updated yaml? (at least that used to be the case)
Ah, this is a very topical question @popey - did you see Update store metadata ? This describes how one can update metadata from a snap upload and resolve conflicts from the store UI.
Yes, and I hope that my merge request will help the publishers of those snaps understand how to fix their snapcraft.yaml to address this issue.
We should not munge descriptions in the store, new-lines in the description should be respected so that publishers can format their description (within the limits of the YAML)
Letâs please not use or encourage people to use â>â in snapcraft.yaml. The resulting string is modified in a non-obvious way, and corrupts the original intention of the author, which is surprising and will present bad results in the terminal, and probably in the web as well.
I ask because itâs mentioned elsewhere that weâll be moving to support a limited subset of markdown, so itâd make sense to make it as friction-free as possible
PARAGRAPHS AND LINE BREAKS
A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines. (A blank line is any line that looks like a blank line â a line containing nothing but spaces or tabs is considered blank.) Normal paragraphs should not be indented with spaces or tabs.
The implication of the âone or more consecutive lines of textâ rule is that Markdown supports âhard-wrappedâ text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Typeâs âConvert Line Breaksâ option) which translate every line break character in a paragraph into a <br /> tag.
When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.
Yes, this takes a tad more effort to create a <br />, but a simplistic âevery line break is a <br />â rule wouldnât work for Markdown. Markdownâs email-style blockquoting and multi-paragraph list items work best â and look better â when you format them with hard breaks.
(testing with common mark shows this still holds true there).
In general markdown does (or tries to do) the right thing one would expect when looking at the pure text, which partly explains its popularity. That said, the double space at the end is a major mistake that we shouldnât repeat or depend on. The right thing for breaking paragraphs on our end is just having an empty line, which will also do the right thing on markdown per the first paragraph in the explanation.