From 28cd540da554cf11a3818f960512a282912667b3 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 16 Apr 2015 11:03:29 +0100 Subject: Clean up variable name --- lib/alaveteli_text_masker.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3