← Back to issue list

Properly represent multi-line yaml strings

View original Github issue

Metadata

Project
craft-application
Number
#255
Type
issue
State
open
Author
cmatsuoka
Labels
Created
2024-02-29 19:14:54+00:00
Updated
2025-05-23 17:27:01+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Add multi-line string representer to be used when marshaling yaml fields such as description and scriptlets. The representer is currently [defined in Snapcraft](https://github.com/canonical/snapcraft/blob/8a9a5c21229f68a5e0daa7c89d609d7d29006477/snapcraft/meta/snap_yaml.py#L487) but it's not being invoked since https://github.com/canonical/snapcraft/commit/e75d0e93bcbf019a8dbd17caf4842e23788ab53a. ### Why it needs to get done Multi-line fields formatting is not correct in generated yaml data if the representer is not used.

Evaluation history

No evaluation history available.