diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-08-16 22:20:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-08-16 22:20:00 +0200 |
commit | bc1e8c26c1c0596eb7410b522bff296fa6e7e2fc (patch) | |
tree | 82f6f25cd9d26e77a0c076cc1694e1d247f3cd19 /tex/context/base/node-tra.lua | |
parent | 0dc23517ffebac8da38bbf8b4b8753d2a39848a7 (diff) | |
download | context-bc1e8c26c1c0596eb7410b522bff296fa6e7e2fc.tar.gz |
beta 2012.08.16 22:20
Diffstat (limited to 'tex/context/base/node-tra.lua')
-rw-r--r-- | tex/context/base/node-tra.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/node-tra.lua b/tex/context/base/node-tra.lua index 34d51529c..4ff6c1033 100644 --- a/tex/context/base/node-tra.lua +++ b/tex/context/base/node-tra.lua @@ -539,7 +539,7 @@ end nodes.showsimplelist = function(h,depth) showsimplelist(h,depth,0) end -local function listtoutf(h,joiner,textonly) +local function listtoutf(h,joiner,textonly,last) local joiner = (joiner == true and utfchar(0x200C)) or joiner -- zwnj local w = { } while h do @@ -563,7 +563,11 @@ local function listtoutf(h,joiner,textonly) else w[#w+1] = "[-]" end - h = h.next + if h == last then + break + else + h = h.next + end end return concat(w) end |