Changeset 161


Ignore:
Timestamp:
04/08/12 20:52:04 (13 years ago)
Author:
kdeugau
Message:

/trunk

Fix handling of long descriptions with blank (or "blank") lines
Thanks to Andreas Itzchak Rehberg for pointing it out

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r160 r161  
    12431243        ( defined($pkgdata{$pkg}{replaces}) ? "Replaces: $pkgdata{$pkg}{replaces}\n" : '' ).
    12441244        "Description: $pkgdata{$pkg}{summary}\n";
     1245    # Munge things so that Debian tools don't choke on errant blank lines
     1246    $pkgdata{$pkg}{desc} =~ s/\s+$//g;          # Trim trailing blanks
     1247    $pkgdata{$pkg}{desc} =~ s/^ $/ ./mg;        # Replace lines consisting of " \n" with " .\n"
    12451248    $control .= "$pkgdata{$pkg}{desc}\n";
    12461249
  • trunk/template.spec

    r137 r161  
    4949%description
    5050Multi-line
     51
    5152description
     53
    5254
    5355%prep
Note: See TracChangeset for help on using the changeset viewer.