-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors when splitting multi-lines commit messages #2
Comments
Hmm nice catch. We can do both single/multi line, the question is why(do we/others need multiline really?) |
In my case some users have a commits that contain multi lines messages, so I need to handle that case (the current version is buggy and totally breaks the formating). sha can be an option. I think it could be great to pass parameters in the config file to set the headers. For example columns-to-display : ['author', 'message'] |
I can do a PR for that if you want. Currently I host a fork of this project in a private Pypi but I would be happy to contribute :) |
@julienbeisel |
@julienbeisel multiline comments are naturall, this is not something I was talking about :) We can do it, if you need it. In case of parameters probably better to parse and for easy of use would be rather: layout:
Would you mind to have a talk about some things via email? You can find mine in my profile. Regards, |
I tried to display multi-lines commit messages (by only taking the first line into account).
The line below does not work properly:
msg = commit.message.partition('\n')[0]
I think that every escape characters are not recognized and it results in an unstable result that breaks my markdown formatting.
The way to fix it is to use splitlines()
msg = commit.message.splitlines()[0]
I chose to display the first line, but it can also be possible to insert other lines with a regex or a join() on the array :
msg = "<br />".join(commit.message.splitlines())
The text was updated successfully, but these errors were encountered: