From 2e5484400a00b4e2f0273c26709b65e3ff8492c8 Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@nexedi.com>
Date: Fri, 16 Dec 2016 13:44:29 +0100
Subject: [PATCH] wkhtmltopdf: fix argument propagation to wkhtmltopdf binary

---
 component/wkhtmltopdf/buildout.cfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/component/wkhtmltopdf/buildout.cfg b/component/wkhtmltopdf/buildout.cfg
index 88f2d9ef2..e6b06290e 100644
--- a/component/wkhtmltopdf/buildout.cfg
+++ b/component/wkhtmltopdf/buildout.cfg
@@ -35,6 +35,7 @@ script =
   wrapper.write("""#!${dash:location}/bin/dash
   export LD_LIBRARY_PATH=%(location)s:${libXrender:location}/lib/:${fontconfig:location}/lib/:${libX11:location}/lib/:${libXext:location}/lib/
   export PATH=${fontconfig:location}/bin:$PATH
-  exec %(location)s/wkhtmltopdf-""" + WK_SUFIX_MAP[platform]+ """ $*""")
+  exec %(location)s/wkhtmltopdf-""" + WK_SUFIX_MAP[platform]+ """ "$@"
+  """)
   wrapper.close()
   os.chmod(wrapper_location, 0755)
-- 
2.30.9