italia / publiccode-editor

A web editor to create and edit publiccode.yml files
https://publiccode-editor.developers.italia.it
GNU Affero General Public License v3.0
20 stars 24 forks source link

The Validate button and process adds empty lines in my publiccode.yml longDescription field #291

Open ItaloMairo opened 8 months ago

ItaloMairo commented 8 months ago

Subject of the issue

With publiccode.yml editor v. 4.3.1, such the online one: https://publiccode-editor.developers.italia.it/ After I upload a valid pubblicode.yml file with nicely formatted longDescription field, once I hit the Validate process the Successful response changes the formating of the longDescription field adding 1 blank / empty line for each line of it ... thus altering (in a bad way) the original format and content of that field. I need to manually correct it in the form before downloading again.

Steps to reproduce

Simply try the Validate process with the valid attached publiccode.yml of mine:

publiccode_eu_oss_catalogue_latest_version.yml.zip

Expected behaviour

The Validate process shouldn't change / alter the original publiccode.yml content and formatting

Actual behaviour

publiccode_eu_oss_catalogue_latest_version.yml.zip

... instead now the longDescription field is being altered (in the right bar) with white / empty code lines ...

Screenshot 2023-12-21 at 12 48 29

Screenshot 2023-12-21 at 12 50 43

bfabio commented 8 months ago

Thanks @ItaloMairo, confirming