diff options
author | Hans Hagen <pragma@wxs.nl> | 2007-12-31 11:54:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2007-12-31 11:54:00 +0100 |
commit | f5db49f15c3f9ec7dba40d6120b89df2cd0030ff (patch) | |
tree | 46248003cc54a3c00875c0dd9fd692d9b2631ddc /tex/context/base/page-lin.lua | |
parent | fd7a16a8cc13f71119d5fbad9a395cd3d2107d89 (diff) | |
download | context-f5db49f15c3f9ec7dba40d6120b89df2cd0030ff.tar.gz |
stable 2007.12.31 11:54
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 91412d84f..a8d868f36 100644 --- a/tex/context/base/page-lin.lua +++ b/tex/context/base/page-lin.lua @@ -88,8 +88,12 @@ do if d then local s = d.start current_list[#current_list+1] = { n, s } - sprint(tex.ctxcatcodes, format("\\makenumber{%s}{%s}{%s}{%s}{%s}\\endgraf", d.tag or "", s, n.shift, n.width, leftskip(n.list))) - d.start = s + (d.step or 1) + if d.start % d.step == 0 then + sprint(tex.ctxcatcodes, format("\\makenumber{%s}{%s}{%s}{%s}{%s}\\endgraf", d.tag or "", s, n.shift, n.width, leftskip(n.list))) + else + sprint(tex.ctxcatcodes, "\\skipnumber\\endgraf") + end + d.start = s + 1 -- (d.step or 1) end end for n in traverse_id(hlist,head) do -- attr test here and quit as soon as zero found |