File: wrap_cl.py

package info (click to toggle)
git-buildpackage 0.9.38
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,456 kB
  • sloc: python: 18,399; xml: 8,746; sh: 719; makefile: 139
file content (15 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Simple changelog entry formatter
#
# It simply uses the built in formatter and linewraps the text
#
# Use git-dch --customizations=/usr/share/doc/git-buildpackage/examples/wrap_cl.py
# or set it via gbp.conf

import textwrap
import gbp.dch


def format_changelog_entry(commit_info, options, last_commit=False):
    entry = gbp.dch.format_changelog_entry(commit_info, options, last_commit)
    if entry:
        return textwrap.wrap(" ".join(entry))