View Single Post
07/10/14, 07:49 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
A small change in itemlink format:
Code:
|H0:item:45040:3:12:26848:3:12:0:0:0:0:0:0:0:0:0:4:0:0:153:0|hp^n|h
It means that function ZO_LinkHandler_ParseLink() does not return empty string but p^ and some code.

Also zo_strformat() leaves one space before link, so the old bug is fixed. By the way if you want to have more then one space before itemlink you should use "X" in the pattern:
Lua Code:
  1. zo_strformat("Text            <<t:1>>", itemLink)
  2. --returns "Text itemLink"
  3.  
  4. zo_strformat("Text            <<X:1>>", itemLink)
  5. --returns "Text            itemLink")
  Reply With Quote