[Rt-commit] rt branch, 4.2/make-show-email-record-printable, created. rt-4.0.6-491-g1fdb468

Kevin Falcone falcone at bestpractical.com
Thu Aug 23 15:20:17 EDT 2012


The branch, 4.2/make-show-email-record-printable has been created
        at  1fdb468a1d560d1479e9e1a029739cb4e7504ba4 (commit)

- Log -----------------------------------------------------------------
commit 1fdb468a1d560d1479e9e1a029739cb4e7504ba4
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 55ee823..2878cd3 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 = RT::Attachment->new($session{'CurrentUser'});

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


More information about the Rt-commit mailing list