I noticed today, that entering quotes into the parameter retvals_csv in GetUserInputs produces weird results.
It seems like, the function sees contents within quotes as one string.
For instance, if I pass a string to it:
and choose as separator \n, the default-retvals will be shown as
though I would expect it to be like
thus putting quotes into default-retval is simply impossible.
This is difficult, if the user enters something like
Code:
"I'm"
"enlightened"
and I refeed the user's input the next time using GetUserInputs, it will be one line, though entered as two lines:
That means, all newlines will be ignored after such a quote until a "closing quote" appears.
Here are some more examples for that:
Code:
-- Only one '
oldnotes="\'A\nB\nC"
retval, result = reaper.GetUserInputs(" ", 5, "Episode Title:,Author:,Podcast:,Podcast Category:,Description:,extrawidth=300, separator=\n", oldnotes)
-- Only one "
oldnotes="\"A\nB\nC"
retval, result = reaper.GetUserInputs(" ", 5, "Episode Title:,Author:,Podcast:,Podcast Category:,Description:,extrawidth=300, separator=\n", oldnotes)
-- Two ' in the string
oldnotes="\'A\nB\'\nC"
retval, result = reaper.GetUserInputs(" ", 5, "Episode Title:,Author:,Podcast:,Podcast Category:,Description:,extrawidth=300, separator=\n", oldnotes)
-- no quotes at all and it works, as it should be
oldnotes="A\nB\nC"
retval, result = reaper.GetUserInputs(" ", 5, "Episode Title:,Author:,Podcast:,Podcast Category:,Description:,extrawidth=300, separator=\n", oldnotes)