diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-16 11:03:29 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-16 11:03:29 +0100 |
commit | 28cd540da554cf11a3818f960512a282912667b3 (patch) | |
tree | 778c9bec48d37cf7d5be18943d5e34f8cf16c94c | |
parent | f3dcc03101cb84ad26e4f9b331c6a7b53a5b5d5d (diff) |
Clean up variable name
-rw-r--r-- | lib/alaveteli_text_masker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/alaveteli_text_masker.rb b/lib/alaveteli_text_masker.rb index b1c6ed1ae..de85df7cf 100644 --- a/lib/alaveteli_text_masker.rb +++ b/lib/alaveteli_text_masker.rb @@ -58,13 +58,13 @@ module AlaveteliTextMasker AlaveteliExternalCommand.run("pdftk", "-", "output", "-", "uncompress", :stdin_string => text) end - def compress_pdf(censored_uncompressed_text) + def compress_pdf(text) if AlaveteliConfiguration::use_ghostscript_compression == true command = ["gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=-", "-"] else command = ["pdftk", "-", "output", "-", "compress"] end - AlaveteliExternalCommand.run(*(command + [{:stdin_string=>censored_uncompressed_text}])) + AlaveteliExternalCommand.run(*(command + [{:stdin_string=>text}])) end # Replace text in place |