diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua b/Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua index ac265fa06f6..9d0ae235f22 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua +++ b/Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua @@ -14,15 +14,15 @@ local nodecodes = nodes.nodecodes local insert_node_before = node.insert_before local insert_node_after = node.insert_after -local remove_node = nodes.remove +local remove_node = node.remove local has_attribute = node.has_attribute local node_copy = node.copy local new_node = node.new +local math_code = nodecodes.math local end_of_math = node.end_of_math if not end_of_math then -- luatex < .76 local traverse_nodes = node.traverse_id - local math_code = nodecodes.math local end_of_math = function (n) for n in traverse_nodes(math_code, n.next) do return n @@ -160,10 +160,10 @@ local function process(head) if somespace then local somepenalty = somepenalty(prevprev,10000) if somepenalty then - head = remove_node(head,prev,true) - head = remove_node(head,prevprev,true) + head = remove_node(head,prev) + head = remove_node(head,prevprev) else - head = remove_node(head,prev,true) + head = remove_node(head,prev) end end insert_node_before(head,start,get_penalty_node()) @@ -177,13 +177,13 @@ local function process(head) if somepenalty then local somespace = somespace(nextnext,true) if somespace then - head = remove_node(head,next,true) - head = remove_node(head,nextnext,true) + head = remove_node(head,next) + head = remove_node(head,nextnext) end else local somespace = somespace(next,true) if somespace then - head = remove_node(head,next,true) + head = remove_node(head,next) end end insert_node_after(head,start,get_kern_node(map[2]*quad)) |