Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-30-18, 04:52 PM   #1
Lyak
A Cyclonian
Join Date: Jul 2018
Posts: 46
In-game text editor tends to saves extra vertical slash ('|') into SV

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:
  1. local testOption = {
  2.     type = "group",
  3.     childGroups = "tab",
  4.     name = "TestOption",
  5.     arg = "TestOption",
  6.     args = {
  7.         test = {
  8.             type = "input",
  9.             name = "Input",
  10.             width = "full",
  11.             get = function(info)
  12.                 return myDB.test;
  13.             end,
  14.             set = function(info, ...)
  15.                 myDB.test = ...;
  16.             end,
  17.         },
  18.     },
  19. }
  20.  
  21. ACR:RegisterOptionsTable("TestOption", testOption);
  22. 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.

Last edited by Lyak : 09-30-18 at 04:59 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » In-game text editor tends to saves extra vertical slash ('|') into SV

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off