[Rt-commit] rt branch, 4.4/wrap-column-count, repushed

Blaine Motsinger blaine at bestpractical.com
Fri Mar 15 14:22:12 EDT 2019


The branch 4.4/wrap-column-count was deleted and repushed:
       was ea73b35a6fbd9b94bc68a4e670d3b22ddc144f6c
       now 33efcf449fe691f3e4ff442c8ea418f661273bae

1: ea73b35a6 ! 1: 33efcf449 Added configurable option for wrap column count
    @@ -2,8 +2,14 @@
     
         Added configurable option for wrap column count
         
    -    This change moves the default of 70 for wrap column count from the
    -    RT::Transaction module to RT_Config.pm.
    +    This change moves the default value for wrap column count from the
    +    RT::Transaction module to RT_Config.pm. The wrap column count can
    +    now be configured through RT_SiteConfig.pm with the QuoteWrapWidth
    +    variable.
    +    
    +        Set( $QuoteWrapWidth, 110 );
    +    
    +    Additionally, the default value has been raised from 70 to 100.
     
     diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
     --- a/etc/RT_Config.pm.in
    @@ -12,6 +18,7 @@
      
      Set($QuoteFolding, 1);
      
    +-=back
     +=item C<$QuoteWrapWidth>
     +
     +C<$QuoteWrapWidth> controls the number of columns to use when wrapping
    @@ -19,20 +26,21 @@
     +
     +=cut
     +
    -+Set($QuoteWrapWidth, 100); 
    -+
    - =back
    ++Set($QuoteWrapWidth, 100);
      
      
    + =head1 Application logic
     
     diff --git a/lib/RT/Transaction.pm b/lib/RT/Transaction.pm
     --- a/lib/RT/Transaction.pm
     +++ b/lib/RT/Transaction.pm
     @@
    + textual part (as defined in RT::I18N::IsTextualContentType).  Otherwise,
      returns the message "This transaction appears to have no content".
      
    - Takes a paramhash.  If the $args{'Quote'} parameter is set, wraps this message 
    +-Takes a paramhash.  If the $args{'Quote'} parameter is set, wraps this message 
     -at $args{'Wrap'}.  $args{'Wrap'} defaults to 70.
    ++Takes a paramhash.  If the $args{'Quote'} parameter is set, wraps this message
     +at $args{'Wrap'}.  $args{'Wrap'} is configurable through the QuoteWrapWidth
     +config setting and defaults to 100 characters.
      
    @@ -43,7 +51,16 @@
              Type => $PreferredContentType || '',
              Quote => 0,
     -        Wrap  => 70,
    -+        Wrap  => RT->Config->Get('QuoteWrapWidth'),
    ++        Wrap => RT->Config->Get('QuoteWrapWidth'),
              @_
          );
      
    +@@
    +         $max = length if length > $max;
    +     }
    + 
    +-    if ( $max > 76 ) {
    ++    if ( $max > $args{cols} ) {
    +         require Text::Quoted;
    +         require Text::Wrapper;
    + 



More information about the rt-commit mailing list