diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-02 03:03:35 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-02 03:03:35 +0000 |
commit | 66aedee32b96d68acc7b854602552c75ef261973 (patch) | |
tree | e2695c9462f5e3202dd827cea9648463f933b80e /indexing/xindex/lualatex/xindex-lib.lua | |
parent | a9726d029d99c128a7abb22e73074ba0a1ce838e (diff) |
CTAN sync 202009020303
Diffstat (limited to 'indexing/xindex/lualatex/xindex-lib.lua')
-rw-r--r-- | indexing/xindex/lualatex/xindex-lib.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indexing/xindex/lualatex/xindex-lib.lua b/indexing/xindex/lualatex/xindex-lib.lua index a574ee6bcc..004c697fdd 100644 --- a/indexing/xindex/lualatex/xindex-lib.lua +++ b/indexing/xindex/lualatex/xindex-lib.lua @@ -7,7 +7,7 @@ ----------------------------------------------------------------------- if not modules then modules = { } end modules ['xindex-lib'] = { - version = 0.26, + version = 0.27, comment = "main library to xindex.lua", author = "Herbert Voss", copyright = "Herbert Voss", @@ -865,8 +865,8 @@ function itemOutput(last, v, hyperpage) for i = 1,excl+1 do currentItems[i] = getItem(Entry,i-1) -- 0 ! 1 ! 2 ! ... local item = "item" + writeLog(1,"itemOutput: currentItems[i]: "..tostring(currentItems[i]).."~= lastItems[i]: "..tostring(lastItems[i]).."\n",2) if (currentItems[i] ~= lastItems[i]) then - writeLog(1,"itemOutput: currentItems[i]: "..tostring(currentItems[i]).."~= lastItems[i]: "..tostring(lastItems[i]).."\n",2) local space = " " for j = 2,i do item = "sub"..item -- get the sub...subitem @@ -878,14 +878,16 @@ function itemOutput(last, v, hyperpage) str = space.."\\"..item.." "..sublabels[i]..currentItems[i].."\n" else str = space.."\\"..item.." "..sublabels[i]..currentItems[i]..itemPageDelimiter.." "..getPageList(v,hyperpage).."\n" +-- set current (sub...)item to empty + currentItems[i] = "" end for i, str0 in ipairs(escape_chars) do -- undo the escape char setting str = string.gsub(str,str0[2],str0[3]) end outFile:write(str); indLines=indLines+1 - lastItems[i] = currentItems[i] else writeLog(1,"itemOutput: currentItems[i]: "..currentItems[i].."= lastItems[i]: "..lastItems[i].."\n",2) + lastItems[i] = currentItems[i] end end end |