[Rt-commit] rt branch, 4.4/signature-spacing, repushed
Alex Vandiver
alexmv at bestpractical.com
Fri May 6 06:39:29 EDT 2016
The branch 4.4/signature-spacing was deleted and repushed:
was 0d14b71228af2cbcea312c88cc9a89da2c622541
now 9df4d3387e22754f160a5aba91f2e25381309b45
1: 6329df1 = 1: 6329df1 remove the unnecessary "\" because browsers ignore the first newline
2: 0d14b71 ! 2: 9df4d33 Tweak spaces around signature to provide useful default whitespace
@@ -72,8 +72,8 @@
-my $signature = '';
-if ( $IncludeSignature and my $text = $session{'CurrentUser'}->UserObj->Signature ) {
- $signature = "-- \n". $text;
-+my $signature = $session{'CurrentUser'}->UserObj->Signature;
-+if ( $IncludeSignature and defined $signature and $signature =~ /\S/ ) {
++my $signature = $session{'CurrentUser'}->UserObj->Signature // "";
++if ( $IncludeSignature and $signature =~ /\S/ ) {
+ $signature =~ s/\n*$//;
+
if ($Type eq 'text/html') {
@@ -96,8 +96,11 @@
+ $signature = ($Type eq 'text/html' ? "" : "\n") . $signature;
+ }
}
++} else {
++ $signature = '';
}
+ # wrap="something" seems to really break IE + richtext
diff --git a/t/web/search_bulk_update_links.t b/t/web/search_bulk_update_links.t
--- a/t/web/search_bulk_update_links.t
More information about the rt-commit
mailing list