[Rt-commit] rt branch, 3.8/make-show-email-record-printable, created. rt-3.8.11-4-gcd35c28

Ruslan Zakirov ruz at bestpractical.com
Wed Nov 23 07:14:12 EST 2011


The branch, 3.8/make-show-email-record-printable has been created
        at  cd35c28b58a86f9e201d1cd24f8b9826afe99b5f (commit)

- Log -----------------------------------------------------------------
commit cd35c28b58a86f9e201d1cd24f8b9826afe99b5f
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Nov 23 16:07:29 2011 +0400

    ShowEmailRecord used pre which is not good for printing
    
    We have TextPlain{Pre|Mono} options to control this,
    but for 3.8 we will just use TextPlainMono way

diff --git a/share/html/Ticket/ShowEmailRecord.html b/share/html/Ticket/ShowEmailRecord.html
index 77f0f59..fbd1101 100644
--- a/share/html/Ticket/ShowEmailRecord.html
+++ b/share/html/Ticket/ShowEmailRecord.html
@@ -65,7 +65,7 @@ my $show_content = sub {
 my $show;
 $show = sub {
     my $attach = shift;
-    $m->out( '<div id="body"><pre style="padding: 2em;">' );
+    $m->out( '<div id="body"><div class="plain-text-white-space">' );
     $m->out( $m->interp->apply_escapes( $attach->Headers, 'h' ) );
     $m->out( "\n\n" );
     if ( $attach->ContentType =~ m{^multipart/}i ) {
@@ -76,7 +76,7 @@ $show = sub {
     } else {
         $show_content->( $attach );
     }
-    $m->out( '</pre></div>' );
+    $m->out( '</div></div>' );
 };
 
 my $AttachmentObj = new RT::Attachment($session{'CurrentUser'});

-----------------------------------------------------------------------


More information about the Rt-commit mailing list