wrap_cl.py 450 B

123456789101112131415
  1. # Simple changelog entry formatter
  2. #
  3. # It simply uses the built in formatter and linewraps the text
  4. #
  5. # Use git-dch --customizations=/usr/share/doc/git-buildpackage/examples/wrap_cl.py
  6. # or set it via gbp.conf
  7. import textwrap
  8. import gbp.dch
  9. def format_changelog_entry(commit_info, options, last_commit=False):
  10. entry = gbp.dch.format_changelog_entry(commit_info, options, last_commit)
  11. if entry:
  12. return textwrap.wrap(" ".join(entry))