Commit ed4251d4 authored by Francesco Witz's avatar Francesco Witz
Browse files

Merge branch 'fix' into 'main'

fix: line formatting

See merge request !12
parents b063cd2c 17ebff04
......@@ -68,29 +68,29 @@ def write_changes(project_path: str, file: File, commits: list[Commit]):
doc.append(commit.chlog_format())
# Creating sections (title + unnumbered list)
if added:
section.append("### Added")
section.append("### Added\n")
for e in added:
section.append("- " + e)
section.append("- " + e + "\”")
section.append("\n")
if changed:
section.append("### Changed")
section.append("### Changed\n")
for e in changed:
section.append("- " + e)
section.append("- " + e + "\”")
section.append("\n")
if removed:
section.append("### Removed")
section.append("### Removed\n")
for e in removed:
section.append("- " + e)
section.append("- " + e + "\”")
section.append("\n")
if security:
section.append("### Security")
section.append("### Security\n")
for e in security:
section.append("- " + e)
section.append("- " + e + "\”")
section.append("\n")
if doc:
section.append("### Doc")
section.append("### Doc\n")
for e in doc:
section.append("- " + e)
section.append("- " + e + "\”")
section.append("\n")
# Finally writting everything to file
lines = file.read_chlog()
......
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