Blame cowsay-3.03-debian-02-remove_trailing_spaces.patch
|
|
f7d2db4 |
Description: Removing trailing spaces
|
|
|
f7d2db4 |
This is mainly to work-around broken word-wrapping by mail clients.
|
|
|
f7d2db4 |
Forwarded: no
|
|
|
f7d2db4 |
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276144#42
|
|
|
f7d2db4 |
Bug-Debian: http://bugs.debian.org/276144
|
|
|
f7d2db4 |
Author: Florian Ernst <florian@uni-hd.de>
|
|
|
f7d2db4 |
|
|
|
f7d2db4 |
--- cowsay-3.03.orig/cowsay
|
|
|
f7d2db4 |
+++ cowsay-3.03/cowsay
|
|
|
f7d2db4 |
@@ -128,15 +132,16 @@ sub construct_balloon {
|
|
|
f7d2db4 |
@border = qw[ / \ \ / | | ];
|
|
|
f7d2db4 |
}
|
|
|
f7d2db4 |
}
|
|
|
f7d2db4 |
+## no trailing spaces (#276144)
|
|
|
f7d2db4 |
push(@balloon_lines,
|
|
|
f7d2db4 |
- " " . ("_" x $max2) . " \n" ,
|
|
|
f7d2db4 |
+ " " . ("_" x $max2) . "\n" ,
|
|
|
f7d2db4 |
sprintf($format, $border[0], $message[0], $border[1]),
|
|
|
f7d2db4 |
(@message < 2 ? "" :
|
|
|
f7d2db4 |
map { sprintf($format, $border[4], $_, $border[5]) }
|
|
|
f7d2db4 |
@message[1 .. $#message - 1]),
|
|
|
f7d2db4 |
(@message < 2 ? "" :
|
|
|
f7d2db4 |
sprintf($format, $border[2], $message[$#message], $border[3])),
|
|
|
f7d2db4 |
- " " . ("-" x $max2) . " \n"
|
|
|
f7d2db4 |
+ " " . ("-" x $max2) . "\n"
|
|
|
f7d2db4 |
);
|
|
|
f7d2db4 |
}
|
|
|
f7d2db4 |
|