-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Adam Sjøgren wrote:
> Package: dh-make-perl
> Version: 0.20
> Severity: normal
> Tags: patch
>
>
> Some modules get descriptions with linefeeds in them - this fools
> dh-make-perl into making invalid debian/control-files (the Description
> field is not indented correctly).
>
> Please consider applying the attached patch or some other remedy.
> Thanks!
>
> .......
>
> --- dh-make-perl.orig 2006-01-31 13:45:23.133438005 +0100
> +++ dh-make-perl 2006-01-31 13:46:04.413068655 +0100
> @@ -506,6 +506,8 @@
> $my_desc =~ s/\n.*$//s;
> $desc = $my_desc;
> }
> + # Replace linefeeds (not followed by a space) in $desc with spaces:
> + $desc=~s/\n\S/ /gs;
>
> unless ($longdesc) {
> $longdesc = $parser->get('DESCRIPTION')
The above pattern elliminates any non-space after the linefeed.
How about ``/\n(?=\S)/ /gs'' ?
For those (like me) that don't remember what (?=...) is:
"(?=pattern)"
A zero-width positive look-ahead assertion. For example,
"/\w+(?=\t)/" matches a word followed by a tab, without
including the tab in $&.
dam
- --
Damyan Ivanov Creditreform Bulgaria
[EMAIL PROTECTED] http://www.creditreform.bg/
phone: +359(2)928-2611, 929-3993 fax: +359(2)920-0994
mob. +359(88)856-6067 [EMAIL PROTECTED]/Gaim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD36OoHqjlqpcl9jsRApZYAKCRNnz9F/6gEVahbhZ9N67MFWRduQCgn3n+
yTR0bknRTrCs/1ewRviTyTw=
=kVHA
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]