summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-lin.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-08-31 00:15:05 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-08-31 00:15:05 +0200
commitdb76d739a1e8dc1faa0ba194d4d4f2d6081e9ae7 (patch)
tree225447286202581362ef758c0561c6f7abfbbeaa /tex/context/base/typo-lin.lua
parent44b54480d044b8fe578a05a3e21bff802e9d0610 (diff)
downloadcontext-db76d739a1e8dc1faa0ba194d4d4f2d6081e9ae7.tar.gz
2015-08-30 23:05:00
Diffstat (limited to 'tex/context/base/typo-lin.lua')
-rw-r--r--tex/context/base/typo-lin.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/typo-lin.lua b/tex/context/base/typo-lin.lua
index ef7bbe6ac..536252960 100644
--- a/tex/context/base/typo-lin.lua
+++ b/tex/context/base/typo-lin.lua
@@ -107,20 +107,20 @@ typesetters.paragraphs = paragraphs
-- todo: see if we can hook into box in buildpagefilter .. saves traverse
-function paragraphs.normalize(head,...)
+function paragraphs.normalize(head,islocal)
if texgetcount("pagebodymode") > 0 then
- -- can be an option, maybe we need a proper state in lua itself
+ -- can be an option, maybe we need a proper state in lua itself ... is this check still needed?
return head, false
end
for line in traverse_id(hlist_code,tonut(head)) do
- if getsubtype(line) == line_code then
+ if getsubtype(line) == line_code and not getprop(line,"line") then
local head = getlist(line)
local leftskip = nil
local anchor = new_hlist()
local id = getid(head)
local shift = getfield(line,"shift")
local width = getfield(line,"width")
- local hsize = tex.hsize
+ local hsize = islocal and width or tex.hsize
local reverse = getfield(line,"dir") == "TRT" or false
if id == glue_code then
local subtype = getsubtype(head)