diff --git a/mx_convert/mx_convert.py b/mx_convert/mx_convert.py index 59f9afd..4a2906e 100644 --- a/mx_convert/mx_convert.py +++ b/mx_convert/mx_convert.py @@ -102,7 +102,7 @@ def root_cmakelists(path: Path): # Read previously generated contents with open(lists_path, "r") as _if: - lines = _if.readlines() + lines += [line.rstrip("\n") for line in _if] # Save final result with open(lists_path, "w") as of: diff --git a/pyproject.toml b/pyproject.toml index 40c943e..1f40f93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mx_convert" -version = "0.2.0" +version = "0.2.1" description = "A Cube MX projct conversion helper" authors = [{ name = "Didas72" }] dependencies = []