Open pacien opened 11 months ago
Description of the issue:
Multiline YAML strings (using the | modifier) are concatenated with \n after going through Khard.
|
\n
This is inconvenient when editing existing contacts.
It would be nice to write the YAML file in the human-friendly way keeping those multiline | string values.
Example:
Create a new contact with khard new.
khard new
Set some multiline property, as suggested by the default template, such as:
Note: | First line. Second line.
Save that contact.
Re-open that contact with khard edit.
khard edit
Notice that the field is now shown for edition as:
Note: "First line.\nSecond line."
Version info:
I think we serialize the data with the ruaml library. Maybe there is an option in the lib to do this.
Description of the issue:
Multiline YAML strings (using the
|
modifier) are concatenated with\n
after going through Khard.This is inconvenient when editing existing contacts.
It would be nice to write the YAML file in the human-friendly way keeping those multiline
|
string values.Example:
Create a new contact with
khard new
.Set some multiline property, as suggested by the default template, such as:
Save that contact.
Re-open that contact with
khard edit
.Notice that the field is now shown for edition as:
Version info: