summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/m-spreadsheet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/m-spreadsheet.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/m-spreadsheet.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/base/m-spreadsheet.lua b/Master/texmf-dist/tex/context/base/m-spreadsheet.lua
index 9d5106e357e..1b3c5cb34f5 100644
--- a/Master/texmf-dist/tex/context/base/m-spreadsheet.lua
+++ b/Master/texmf-dist/tex/context/base/m-spreadsheet.lua
@@ -129,10 +129,10 @@ function datacell(a,b,...)
end
local function checktemplate(s)
- if find(s,"%%") then
+ if find(s,"%",1,true) then
-- normal template
return s
- elseif find(s,"@") then
+ elseif find(s,"@",1,true) then
-- tex specific template
return gsub(s,"@","%%")
else
@@ -172,7 +172,7 @@ function functions._s_(row,col,c,f,t)
for i=f,t do
local ci = c[i]
if type(ci) == "number" then
- r = r + c[i]
+ r = r + ci
end
end
return r