delimiter fix
This commit is contained in:
parent
c38c5255a1
commit
d51f3ed533
|
@ -202,7 +202,7 @@ function list_concat(self, other, pos)
|
|||
end
|
||||
end
|
||||
|
||||
stead.delim = '~'
|
||||
stead.delim = '|'
|
||||
|
||||
function list_str(self)
|
||||
local i, v, vv, o;
|
||||
|
|
|
@ -36,8 +36,13 @@ __do_xact = function(str, self)
|
|||
local xrefrep = function(str)
|
||||
local s = stead.string.gsub(str,'[{}]','');
|
||||
local o,d,a, oo;
|
||||
s = s:gsub("\\:","<:>");
|
||||
local i = s:find(":", 1, true);
|
||||
local delim = ':'
|
||||
|
||||
if stead.api_version >= "1.2.2" then
|
||||
delim = stead.delim;
|
||||
end
|
||||
s = s:gsub("\\"..delim, "<&delim;>");
|
||||
local i = s:find(delim, 1, true);
|
||||
aarg = {}
|
||||
if i then
|
||||
o = s:sub(1, i - 1);
|
||||
|
@ -66,7 +71,7 @@ __do_xact = function(str, self)
|
|||
else
|
||||
error("Wrong link: "..s, 3);
|
||||
end
|
||||
d = d:gsub("<:>", ":");
|
||||
d = d:gsub("<&delim;>", delim);
|
||||
return xref(d, ref(oo, true), unpack(aarg));
|
||||
end
|
||||
if type(str) ~= 'string' then return end
|
||||
|
|
Reference in a new issue