summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lxml-lpt.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-07-09 15:15:53 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-07-09 15:15:53 +0200
commitb4260c7c04f7e82a9987b7bb758040853ebc464e (patch)
tree4191ca6d239722bb18d796f42a4fb8557f1e4a5c /tex/context/base/mkiv/lxml-lpt.lua
parent563c81a9faf538d1d1f362dc0a5e3bccc0de8023 (diff)
downloadcontext-b4260c7c04f7e82a9987b7bb758040853ebc464e.tar.gz
2020-07-09 14:50:00
Diffstat (limited to 'tex/context/base/mkiv/lxml-lpt.lua')
-rw-r--r--tex/context/base/mkiv/lxml-lpt.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/lxml-lpt.lua b/tex/context/base/mkiv/lxml-lpt.lua
index dc9964d0f..9e4b475fb 100644
--- a/tex/context/base/mkiv/lxml-lpt.lua
+++ b/tex/context/base/mkiv/lxml-lpt.lua
@@ -648,7 +648,7 @@ local lp_attribute = (P("@") + P("attribute::")) / "" * Cc("(ll.at and ll.at['")
----- lp_fastpos_n = (P("-") * R("09")^1 * P(-1)) / function(s) return "(" .. s .. "<0 and (#list+".. s .. "==l))" end
local lp_fastpos_p = P("+")^0 * R("09")^1 * P(-1) / "l==%0"
-local lp_fastpos_n = P("-") * R("09")^1 * P(-1) / "(%0<0 and (#list+%0==l))"
+local lp_fastpos_n = P("-") * R("09")^1 * P(-1) / "(%0<0 and (#list+%0+1==l))" -- +1 added
local lp_fastpos = lp_fastpos_n + lp_fastpos_p
local lp_reserved = C("and") + C("or") + C("not") + C("div") + C("mod") + C("true") + C("false")