arcnmx / serde-ini

Windows INI file {de,}serialization
MIT License
19 stars 17 forks source link

Multi-line support #16

Open alexkirsz opened 3 years ago

alexkirsz commented 3 years ago

The wikipedia page for the INI format states that a backslash followed by a line break indicates a multi-line value.

On the other hand, Python's configparser uses indentation to indicate a multi-line value (see also its documentation on the subject).

It would be great if this crate could support both flavors, maybe via feature flags? e.g. multiline-backslash, multiline-indentation

Context: I am only really interested in Python's flavor because that's needed to correctly parse AWS's CLI config file (see last example for S3 config, which uses multi-line values to emulate nested sections).