[JW Lua] Bug: Edit Plug-in Definition dialog needs proper escaping

Thomas Weber thomas.weber at notengrafik.com
Fri Nov 13 15:48:11 CET 2015


Dear Jari,


the "Edit Plug-in Definition" dialog needs proper escaping of quotes and backslashes. Here is a broken example that it creates:


function plugindef()
   -- This function and the 'finaleplugin' namespace
   -- are both reserved for the plug-in definition.
   return "trailing backslash\", "some "quotes"", "backslash i\n the middle"
end


Quotes and trailing backslashes definitely need to escaped.  Question is whether other backslashes should be escaped as well.  Stuff like "\n" newlines might not make a lot of sense in some fields, but that might be left to the plugin creator.


Thank you!
Thomas






More information about the JWLua mailing list