OSDN Git Service

ltj-ruby.lua: cache_handle can be nil
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Wed, 3 Sep 2014 11:38:22 +0000 (20:38 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Wed, 3 Sep 2014 11:38:38 +0000 (20:38 +0900)
src/ltj-ruby.lua

index 4007fba..145f332 100644 (file)
@@ -571,7 +571,7 @@ local post_lown
 do
    local function write_aux(wv, num)
       local id = has_attr(wv, attr_ruby_id)
-      if id>0 then
+      if id>0 and cache_handle then
         cache_handle:write(
                    'luatexja.ruby.old_break_info['
                       .. tostring(id) .. ']=' .. num