Skip to content

Commit

Permalink
Get multiline values as a list for INI files.
Browse files Browse the repository at this point in the history
Multiline values are now obtained as lists when parsing INI files (this is
the case of e.g. setup.cfg).
  • Loading branch information
orviz committed Feb 1, 2024
1 parent 504107b commit 1064f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docformatter/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,6 @@ def _do_read_parser_configuration(self) -> None:
]:
if _section in config.sections():
self.flargs_dct = {
k: v if isinstance(v, list) else str(v)
k: v.split() if len(v.split()) > 1 else str(v)
for k, v in config[_section].items()
}

0 comments on commit 1064f1b

Please sign in to comment.