diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-10-06 10:20:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-10-06 10:20:00 +0200 |
commit | e34ee22d154fbde65af2d2c6283e0049b41dee8b (patch) | |
tree | 6cb862be83fd861d5cf57e2c9aa764221d83f152 /tex/context/base/page-lin.lua | |
parent | 26e9babbd527be8c77f9eabf089aa0763aabc3bd (diff) | |
download | context-e34ee22d154fbde65af2d2c6283e0049b41dee8b.tar.gz |
beta 2010.10.06 10:20
Diffstat (limited to 'tex/context/base/page-lin.lua')
-rw-r--r-- | tex/context/base/page-lin.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/page-lin.lua b/tex/context/base/page-lin.lua index 473685c4f..e814fd7c4 100644 --- a/tex/context/base/page-lin.lua +++ b/tex/context/base/page-lin.lua @@ -186,14 +186,18 @@ function boxed.stage_one(n) local last_a, last_v, skip = nil, -1, false for n in traverse_id(hlist_code,list) do -- attr test here and quit as soon as zero found if n.height == 0 and n.depth == 0 then - -- skip funny hlists + -- skip funny hlists -- todo: check line subtype else local list = n.list local a = has_attribute(list,a_linenumber) if a and a > 0 then if last_a ~= a then - if data[a].method == variables.next then + local da = data[a] + local ma = da.method + if ma == variables.next then skip = true + elseif ma == variables.page then + da.start = 1 -- eventually we will have a normal counter end last_a = a end |