Skip to content
Snippets Groups Projects
Commit d887bedd authored by Tim Jaacks's avatar Tim Jaacks
Browse files

list_commits: replace "---" with "--"

GitLab renders "---" as a horizontal line or as a frame. We do not want
this, so replace it with "--".
parent 4468328b
No related branches found
No related tags found
1 merge request!51list_commits: replace "---" with "--"
Pipeline #8339 passed with stages
in 19 seconds
...@@ -110,7 +110,7 @@ def list_commits(commits): ...@@ -110,7 +110,7 @@ def list_commits(commits):
"""Create a list of commits along with the commit messages""" """Create a list of commits along with the commit messages"""
commit_list = "" commit_list = ""
for commit in commits: for commit in commits:
commit_list += "\n---\n\nCommit: %s\n\n%s" % (commit.web_url, commit.message) commit_list += "\n--\n\nCommit: %s\n\n%s" % (commit.web_url, commit.message)
return commit_list return commit_list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment