--- font-ota.lua.orig 2014-04-05 14:55:53.789969704 +0200 +++ font-ota.lua 2014-04-05 14:59:32.487654509 +0200 @@ -137,7 +137,7 @@ last[a_state] = s_fina end first, last, n = nil, nil, 0 - if id == math_code then + if id == math_code and current.subtype == 0 then current = end_of_math(current) end end @@ -423,7 +423,7 @@ if first or last then first, last = finish(first,last) end - if id == math_code then + if id == math_code and current.subtype == 0 then current = end_of_math(current) end end