[dev-context] Quoting problems in grph-con.lua

Kevin Boulain kevinboulain at gmail.com
Fri Apr 19 21:06:36 CEST 2019


>From my understanding, there are some superfluous quotes in
context/base/mkiv/grph-con.lua, cancelling the proper quoting done by
validcommand in context/base/mkiv/util-sbx.lua.

For my document, it tries to run something like (the space in the
'Google Drive' directory breaks the generation):
inkscape ""[...]/Google Drive/[...].svg"" --export-dpi=600
--export-pdf=""[...]/Google Drive/[...].svg.pdf""

Applying this patch fixes the double quotes issue:
     local runner = sandbox.registerrunner {
         name     = "svg to something",
         program  = "inkscape",
         template = longtostring [[
-            "%oldname%"
+            %oldname%
-            --export-%format%="%newname%"
+            --export-%format%=%newname%

However, it seems there are more similar quotes in the other templates
of the file.

mtx-context     | current version: 2019.04.16 08:54

(I hope this is the proper way of reporting.)


More information about the dev-context mailing list