diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-06-25 19:46:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-06-25 19:46:00 +0200 |
commit | 1b5137f5fffe265b044838d6ee87d27070902180 (patch) | |
tree | 1282944b13996aa6aad9bd2800fbbff1bdae9f86 /tex/context/base/typo-mar.lua | |
parent | a9c288d372917c485a2882593ed18c8044bf82f1 (diff) | |
download | context-1b5137f5fffe265b044838d6ee87d27070902180.tar.gz |
beta 2014.06.25 19:46
Diffstat (limited to 'tex/context/base/typo-mar.lua')
-rw-r--r-- | tex/context/base/typo-mar.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/typo-mar.lua b/tex/context/base/typo-mar.lua index 5eb129ed5..5096e0042 100644 --- a/tex/context/base/typo-mar.lua +++ b/tex/context/base/typo-mar.lua @@ -557,6 +557,9 @@ end local function inject(parent,head,candidate) local box = candidate.box + if not box then + return head, nil, false -- we can have empty texts + end local width = getfield(box,"width") local height = getfield(box,"height") local depth = getfield(box,"depth") @@ -749,7 +752,9 @@ local function flushed(scope,parent) -- current is hlist done = true continue = continue or con nofstored = nofstored - 1 - registertogether(tonode(parent),room) -- !! tonode + if room then + registertogether(tonode(parent),room) -- !! tonode + end else break end |