summaryrefslogtreecommitdiff
path: root/tex/context/base/page-lin.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-10-07 15:53:01 +0300
committerMarius <mariausol@gmail.com>2010-10-07 15:53:01 +0300
commit2040be98036288cccf0384479819e8c0c17e8d8d (patch)
tree1e775ec1491e701839806c9768d865ab829adccc /tex/context/base/page-lin.lua
parent592d84d67cf9d58d8a205b46bb912ed9fe84d7a2 (diff)
downloadcontext-2040be98036288cccf0384479819e8c0c17e8d8d.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.lua8
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