diff --git a/python-programming/git_commit_simulator.py b/python-programming/git_commit_simulator.py index 9bc84c1..1e96e3c 100644 --- a/python-programming/git_commit_simulator.py +++ b/python-programming/git_commit_simulator.py @@ -41,7 +41,7 @@ def commit(*, commit_message: Union[List[str], str], branch_name: str = "main", old_content: str = None, new_content: str, file: str, name: str, email: str, mode: str = "100644", dt: datetime = None) -> str: if isinstance(commit_message, str): - commit_message = [commit_message + "\n"] + commit_message = [commit_message] commit_message = [" " * 4 + line if line else "" for line in commit_message] if len(commit_message) > 1: commit_message.insert(1, "")