summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-01-19 21:01:53 +0000
committerKarl Berry <karl@freefriends.org>2023-01-19 21:01:53 +0000
commit7ce0a4572d805bdf689e46bfd232f5f3a3869d57 (patch)
treee4229baad45b3316f7f5786a61d7b8d13e7fcbc2 /Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua
parent2383f0c08d5be22ebd1147bae43355431a5fe562 (diff)
xindex (19jan23)
git-svn-id: svn://tug.org/texlive/trunk@65584 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua')
-rw-r--r--Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua b/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua
index 67fc733488b..c8b2a73718c 100644
--- a/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua
+++ b/Master/texmf-dist/tex/lualatex/xindex/xindex-lib.lua
@@ -9,7 +9,7 @@
-----------------------------------------------------------------------
if not modules then modules = { } end modules ['xindex-lib'] = {
- version = 0.45,
+ version = 0.46,
comment = "main library to xindex.lua",
author = "Herbert Voss",
copyright = "Herbert Voss",
@@ -798,7 +798,11 @@ function itemOutput(last, v, hyperpage)
if (i == 1) and (item == "item") then
str = space.."\\"..item.." "..sublabels[i]..currentItems[i].."\n"
else
- str = space.."\\"..item.." "..sublabels[i]..currentItems[i]..itemPageDelimiter.." "..getPageList(v,hyperpage).."\n"
+ if i < excl+1 then -- there is one more ! => so we print no pagenumber
+ str = space.."\\"..item.." "..sublabels[i]..currentItems[i].."\n"
+ else
+ str = space.."\\"..item.." "..sublabels[i]..currentItems[i]..itemPageDelimiter.." "..getPageList(v,hyperpage).."\n"
+ end
end
for i, str0 in ipairs(escape_chars) do -- undo the escape char setting
str = string.gsub(str,str0[2],str0[3])