Originally Posted by elcius
most likely the problem is this part:
you need to trim each line before you test it:
Code:
v = v:match("^%s*(.-)%s*$") or '';
|
Thanks for your reply, elcius. I tried this fix but it didn't change anything.
I don't think that my enterfield string has any carriage returns, since it gets build with "\n" line breaks only, here:
Code:
failStatsString = failStatsString .. LongStats[UITestAddOndb["failstats"]["WARRIOR"]["Arms"][k]] .. "\n"
Or does WoW / Windows add them by default by themselves? Checking both my inputRaw and my db table with table.foreach() didn't yield any differences. Is there a chance to print a string with "\n" and "\r" without them being used as line breaks to check this?
I think at this point I'll script the whole profile management on my own, with an own SavedVariables table and without the AceDB. I did it without AceDB in a smaller addon earlier and I had absolutely no problems with set / get from subtables there.
Regardless, thanks for all your help, elcius, Xrystal, Kanegasi. From my point of view, this topic can be closed.
Greetz.
- Srzm