projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b57b4b0
)
slightly improve terrible quoting behavior when you change MessageBoxWidth
author
ivan
<ivan>
Mon, 20 Jul 2009 04:40:41 +0000
(
04:40
+0000)
committer
ivan
<ivan>
Mon, 20 Jul 2009 04:40:41 +0000
(
04:40
+0000)
rt/FREESIDE_MODIFIED
patch
|
blob
|
history
rt/lib/RT/Transaction_Overlay.pm
patch
|
blob
|
history
diff --git
a/rt/FREESIDE_MODIFIED
b/rt/FREESIDE_MODIFIED
index
d5f35e3
..
dc5e2bc
100644
(file)
--- a/
rt/FREESIDE_MODIFIED
+++ b/
rt/FREESIDE_MODIFIED
@@
-4,6
+4,7
@@
config.layout.in
etc/RT_SiteConfig.pm
lib/RT/Interface/Web_Vendor.pm
lib/RT/SearchBuilder.pm #need DBIx::SearchBuilder >= 1.36 for Pg 8.1+
etc/RT_SiteConfig.pm
lib/RT/Interface/Web_Vendor.pm
lib/RT/SearchBuilder.pm #need DBIx::SearchBuilder >= 1.36 for Pg 8.1+
+lib/RT/Transaction_Overlay.pm
lib/RT/URI/freeside.pm
lib/RT/URI/freeside/Internal.pm
lib/RT/URI/freeside/XMLRPC.pm
lib/RT/URI/freeside.pm
lib/RT/URI/freeside/Internal.pm
lib/RT/URI/freeside/XMLRPC.pm
diff --git
a/rt/lib/RT/Transaction_Overlay.pm
b/rt/lib/RT/Transaction_Overlay.pm
index
451f9d7
..
dd1887e
100644
(file)
--- a/
rt/lib/RT/Transaction_Overlay.pm
+++ b/
rt/lib/RT/Transaction_Overlay.pm
@@
-276,7
+276,7
@@
textual part (as defined in RT::I18N::IsTextualContentType). Otherwise,
returns undef.
Takes a paramhash. If the $args{'Quote'} parameter is set, wraps this message
returns undef.
Takes a paramhash. If the $args{'Quote'} parameter is set, wraps this message
-at $args{'Wrap'}. $args{'Wrap'} defaults to 70.
+at $args{'Wrap'}. $args{'Wrap'} defaults to
$RT::MessageBoxWidth - 2 or
70.
If $args{'Type'} is set to C<text/html>, plain texts are upgraded to HTML.
Otherwise, HTML texts are downgraded to plain text. If $args{'Type'} is
If $args{'Type'} is set to C<text/html>, plain texts are upgraded to HTML.
Otherwise, HTML texts are downgraded to plain text. If $args{'Type'} is
@@
-290,6
+290,7
@@
sub Content {
Type => $PreferredContentType,
Quote => 0,
Wrap => 70,
Type => $PreferredContentType,
Quote => 0,
Wrap => 70,
+ Wrap => ( $RT::MessageBoxWidth || 72 ) - 2,
@_
);
@_
);
@@
-335,7
+336,7
@@
sub Content {
$max = length if ( length > $max );
}
$max = length if ( length > $max );
}
- if ( $max > 76 ) {
+ if ( $max >
$args{'Wrap'}+6 ) { #
76 ) {
require Text::Wrapper;
my $wrapper = new Text::Wrapper(
columns => $args{'Wrap'},
require Text::Wrapper;
my $wrapper = new Text::Wrapper(
columns => $args{'Wrap'},