summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-09-25 20:32:13 +0000
committerKarl Berry <karl@freefriends.org>2018-09-25 20:32:13 +0000
commit4abba3d913a7f4857425e6813470cf2918008a33 (patch)
tree032b4a6d650b95e773d7068d5b68cddede33e503 /Master/texmf-dist/tex/context/third
parent51930f736ae2d13945dadfdfa007c1819baa3c65 (diff)
context-handlecsv (25sep18)
git-svn-id: svn://tug.org/texlive/trunk@48761 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/third')
-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