Changeset 1764


Ignore:
Timestamp:
Jun 1, 2013, 9:27:13 PM (4 years ago)
Author:
bruno
Message:
  • Fix deb changelog generation to avoid long lines (using Text/Wrap? to wrap at 80 chars)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Changelog.pm

    r1432 r1764  
    1717use POSIX qw(strftime);
    1818use lib qw (lib);
     19use Text::Wrap;
    1920use ProjectBuilder::Version;
    2021use ProjectBuilder::Base;
     
    194195        if ($dtype eq "deb") {
    195196            $tmp =~ s/^- //;
    196             print $OUTPUT "  * $tmp";
     197            $Text::Wrap::columns = 80;
     198            print $OUTPUT "  * ".wrap('','    ',$tmp);
    197199        } elsif ($dtype eq "rpm") {
    198200            print $OUTPUT "$tmp";
Note: See TracChangeset for help on using the changeset viewer.