Commit 09f839ea authored by Francesco Witz's avatar Francesco Witz
Browse files

fix: section insertion nested list

parent 1972745f
...@@ -95,6 +95,6 @@ def write_changes(project_path: str, file: File, commits: list[Commit]): ...@@ -95,6 +95,6 @@ def write_changes(project_path: str, file: File, commits: list[Commit]):
# Finally writting everything to file # Finally writting everything to file
lines = file.read_chlog() lines = file.read_chlog()
insert_index = file.get_where_to_write() insert_index = file.get_where_to_write()
lines.insert(insert_index, section) lines[insert_index:insert_index] = section
file.write_chlog(lines) file.write_chlog(lines)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment