mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-06-20 01:19:23 +02:00
Callers currently hand this function a trimmed description, so the output is always clean. An upcoming change to the commit-panel getters will stop trimming at the callsite (so that whitespace typed by the user round-trips through the preservation file exactly), at which point the description can end with one or more newlines. Without this change, a user who presses Enter after their description body and then invokes "Add co-author" would end up with two blank lines between the body and the trailer instead of the expected one.