summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lst.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-04-14 16:51:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-04-14 16:51:00 +0200
commit9e577b0142eb934ef24eedbd16c73a7addff109d (patch)
treec99df6e61f8c48a791108a168e97d830b002b6bd /tex/context/base/strc-lst.lua
parent5b2b3fefb3c4c8e438e4b413e89dd355ce3d7743 (diff)
downloadcontext-9e577b0142eb934ef24eedbd16c73a7addff109d.tar.gz
beta 2013.04.14 16:51
Diffstat (limited to 'tex/context/base/strc-lst.lua')
-rw-r--r--tex/context/base/strc-lst.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/tex/context/base/strc-lst.lua b/tex/context/base/strc-lst.lua
index 7d4d8e7e7..ad7dc0f54 100644
--- a/tex/context/base/strc-lst.lua
+++ b/tex/context/base/strc-lst.lua
@@ -129,9 +129,11 @@ function lists.addto(t)
t.userdata = helpers.touserdata(u) -- nicer at the tex end
end
local numberdata = t.numberdata
- local group = numberdata and numberdata.group or ""
- if group == "" then
- numberdata.group = nil
+ local group = numberdata and numberdata.group
+ if not group then
+ -- forget about it
+ elseif group == "" then
+ group, numberdata.group = nil, nil
else
local groupindex = groupindices[m.name][group]
if groupindex then
@@ -151,7 +153,7 @@ function lists.addto(t)
if setcomponent then
setcomponent(t) -- might move to the tex end
end
- if group ~= "" then
+ if group then
groupindices[m.name][group] = p
end
return p