diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-08 21:24:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-08 21:24:18 +0000 |
commit | 987d0e518382a06ae0a208c665fa2e843e9c94cf (patch) | |
tree | 3e13aa89742ea48969e4969fd314e482bc287b79 /Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua | |
parent | ec4a8f52a42e00c7c0ddb6c8839e9782a2ac9a5e (diff) |
xindex (8mar22)
git-svn-id: svn://tug.org/texlive/trunk@62520 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua b/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua index e7c16becf15..ac8a61b676c 100644 --- a/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua +++ b/Master/texmf-dist/tex/lualatex/xindex/xindex-base.lua @@ -8,7 +8,7 @@ -- $Id: xindex-base.lua 22 2022-02-07 12:18:15Z hvoss $ ----------------------------------------------------------------------- -local info = { version = 0.40 } +local info = { version = 0.41 } -- check config if pageNoPrefixDel ~= "" then @@ -31,6 +31,21 @@ else writeLog(2,#lines.." lines of data read\n",0) end end +print("Anzahl Zeilen: "..#lines) +if #lines == 0 then + print("=========================================") + print("Input file(s) is/are empty!") + print("Leaving program xindex") + print("=========================================") + outFile:write("\n") + outFile:write(envStart.."\n") + if indexOpening ~= "" then -- commands after \begin{theindex} + outFile:write(indexOpening) + end + outFile:write(envStop.."\n") + outFile:close() + os.exit() +end if vlevel > 1 then writeLog(1,"--------------- Input data -----------------\n",2) |