[otrs-cvs] otrs/Kernel/Output/HTML Layout.pm,1.420,1.421
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/Output/HTML
In directory lancelot:/tmp/cvs-serv6928/Kernel/Output/HTML
Modified Files:
Layout.pm
Log Message:
Fixed bug#7237 - Better Shortening Logic in Ascii2Html.
Author: mg
Index: Layout.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Layout.pm,v
retrieving revision 1.420
retrieving revision 1.421
diff -2 -u -d -r1.420 -r1.421
--- Layout.pm 13 Feb 2013 17:04:57 -0000 1.420
+++ Layout.pm 15 Feb 2013 14:34:45 -0000 1.421
@@ -1861,6 +1861,6 @@
# max width
- if ( $Param{Max} ) {
- ${$Text} =~ s/^(.{$Param{Max}}).+?$/$1\[\.\.\.\]/gs;
+ if ( $Param{Max} && length ${$Text} > $Param{Max} ) {
+ ${$Text} = substr( ${$Text}, 0, $Param{Max} - 5 ) . '[...]';
}
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log