-
Notifications
You must be signed in to change notification settings - Fork 24
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
Newlines are not kept in longDescription #51
Comments
as for now the editor produce the longDescription field using |
Library used for yaml conversion manages long string field in a proper logic way. Since this PR#181 related to issue #66 adds this behaviour. To achieve our goal we have two ways in front of us:
|
Further testing shows that publiccode-editor generates valid YAML. It tries to be smart to sometimes it uses
This seems to be correctly parsed as |
This depends on nodeca/js-yaml#515 being merged, unless we want to workaround it. |
@sebbalex @libremente Do we want to vendor |
Literal blocks allow us to preserve newlines correctly. Use patch-package to patch js-yaml until a proper solution reaches upstream. Fix italia#51.
Literal blocks allow us to preserve newlines correctly. Use patch-package to patch js-yaml until a proper solution reaches upstream. Fix italia#51.
As of now, the
>-
syntax is used for multiline fields. However this will not preserve newlines correctly. For instance:will be parsed as:
We need to use
|-
instead of>-
, as explained here: https://yaml-multiline.infoI think this change should only apply to longDescription, where we might expect text with newlines.
The text was updated successfully, but these errors were encountered: