aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/incoming_message.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 4bab7b6ec..8ea4f0fb7 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -366,7 +366,10 @@ class FOIAttachment
html = File.read(tempfile.path + ".html")
File.unlink(tempfile.path + ".html")
elsif self.content_type == 'application/vnd.ms-excel'
- IO.popen("/usr/bin/xlhtml -a " + tempfile.path + "", "r") do |child|
+ # Don't colorise, e.g. otherwise this one comes out with white
+ # text which is nasty:
+ # http://www.whatdotheyknow.com/request/30485/response/74705/attach/html/2/Empty%20premises%20Sefton.xls.html
+ IO.popen("/usr/bin/xlhtml -nc -a " + tempfile.path + "", "r") do |child|
html = child.read()
wrapper_id = "wrapper_xlhtml"
end