summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua b/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua
index 9d6e265d2e4..c34dc26d975 100644
--- a/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua
+++ b/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua
@@ -1,6 +1,6 @@
-- %D \module
-- %D [ file=t-handlecsv.lua,
--- %D version=2018.02.26,
+-- %D version=2018.09.24,
-- %D title=HandleCSV module,
-- %D subtitle=CSV file handling,
-- %D author=Jaroslav Hajtmar,
@@ -796,7 +796,9 @@ end
function thirddata.handlecsv.linepointer()
local csvfile=thirddata.handlecsv.getcurrentcsvfilename()
- return thirddata.handlecsv.gCurrentLinePointer[csvfile]
+ -- return thirddata.handlecsv.gCurrentLinePointer[csvfile] -- cause problem with decimal point for higher versions of Lua
+ -- return math.tointeger(thirddata.handlecsv.gCurrentLinePointer[csvfile]) -- cause incompatibility for lower version of Lua
+ return math.floor(tonumber(thirddata.handlecsv.gCurrentLinePointer[csvfile])) -- compatible with lower and higher versions of Lua
end