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

Kevin Falcone falcone at bestpractical.com
Thu Aug 23 15:59:13 EDT 2012


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

- Log -----------------------------------------------------------------
commit 4c0855ed7f0714c89adf6d4310919bb603f1eb88
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
    
    [Committer's note - this was pulled up from a 3.8 branch to be merged
     but I'm not convinced about honoring prefs in this display so I'm
     merging it as-is.]

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