Hi again all
,
So, I ain't sure where and why this is actually happening, but Input field tends to save extra vertical slash inside SV which is causing a hardship on saving things like escape sequences.
Lua Code:
local testOption = {
type = "group",
childGroups = "tab",
name = "TestOption",
arg = "TestOption",
args = {
test = {
type = "input",
name = "Input",
width = "full",
get = function(info)
return myDB.test;
end,
set = function(info, ...)
myDB.test = ...;
end,
},
},
}
ACR:RegisterOptionsTable("TestOption", testOption);
ACD:AddToBlizOptions("TestOption", nil, nil);
For example, if I input
|cFFFFFFFF|r
This will actually save
||cFFFFFFFF||r
Alternatively, I tried to use
\124, but unfortunately, same thing still occurs.
(In this case it saves
\\124, extra back slash, instead of
\124 )
-- EDIT #1: Changed thread title
Looks like it is not AceConfig input field specific behaviour, but text editor in general.