diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-16 11:04:46 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-16 11:04:46 +0100 |
commit | 6307049ffdf123db731d03b942c12dfa2077cfa2 (patch) | |
tree | 6cb6163db924266f14ffe49f3ed4c08447ee6049 | |
parent | 28cd540da554cf11a3818f960512a282912667b3 (diff) |
Use implicit evaluation.
-rw-r--r-- | lib/alaveteli_text_masker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alaveteli_text_masker.rb b/lib/alaveteli_text_masker.rb index de85df7cf..520872980 100644 --- a/lib/alaveteli_text_masker.rb +++ b/lib/alaveteli_text_masker.rb @@ -59,7 +59,7 @@ module AlaveteliTextMasker end def compress_pdf(text) - if AlaveteliConfiguration::use_ghostscript_compression == true + if AlaveteliConfiguration::use_ghostscript_compression command = ["gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=-", "-"] else command = ["pdftk", "-", "output", "-", "compress"] |