[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1688] trunk/LedgerSMB/Template/LaTeX.pm
- Subject: SF.net SVN: ledger-smb: [1688] trunk/LedgerSMB/Template/LaTeX.pm
- From: ..hidden..
- Date: Tue, 02 Oct 2007 07:45:24 -0700
Revision: 1688
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1688&view=rev
Author: tetragon
Date: 2007-10-02 07:45:23 -0700 (Tue, 02 Oct 2007)
Log Message:
-----------
Correcting Postscript mimetype
Modified Paths:
--------------
trunk/LedgerSMB/Template/LaTeX.pm
Modified: trunk/LedgerSMB/Template/LaTeX.pm
===================================================================
--- trunk/LedgerSMB/Template/LaTeX.pm 2007-10-02 03:45:13 UTC (rev 1687)
+++ trunk/LedgerSMB/Template/LaTeX.pm 2007-10-02 14:45:23 UTC (rev 1688)
@@ -118,10 +118,12 @@
"$parent->{outputfile}.$format", binmode => 1)) {
throw Error::Simple $template->error();
}
- if ($format eq 'dvi') {
+ if (lc $format eq 'dvi') {
$parent->{mimetype} = 'application/x-dvi';
+ } elsif (lc $format eq 'pdf') {
+ $parent->{mimetype} = 'application/pdf';
} else {
- $parent->{mimetype} = 'application/$format';
+ $parent->{mimetype} = 'application/postscript';
}
$parent->{rendered} = "$parent->{outputfile}.$format";
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.