View Single Post
09/28/14, 04:28 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by skobyjay View Post
Hello,

i'm seeing extra chars like "^p" and "^n" or "^Mx" when I output Item links or play names via the "d()" method. i'm also see this if I stored a custom variable. is there a way to prevent this or what are these extra charactersa
Use function zo_strformat(pattern, ...). For names is usually used pattern SI_UNIT_NAME or "<<C:1>>".

Lua Code:
  1. d(zo_strformat(SI_UNIT_NAME, name))

A bit more about zo_strformat, its patterns and control characters like "^p" or "^n":
http://www.esoui.com/forums/showthread.php?t=1443
  Reply With Quote