local finalize_inner
local function finalize_dir_node(db,new_dir)
local b = getlist(db)
- if getid(b)==id_whatsit and getsubtype(b)==sid_user
- and getfield(b, 'user_id')==DIR then
+ while b and ((getid(b)~=id_hlist) and (getid(b)~=id_vlist)) do
local ob = b; b = node_remove(b,b); setfield(db, 'head', b);
node_free(ob)
end
local k = prefix
local s
local pt, pic = node_type(p.id), (has_attr(p, attr_icflag) or 0) % icflag_table.PROCESSED_BEGIN_FLAG
- local base = prefix .. string.format('%X', pic)
- .. ' ' .. pt .. ' ' .. tostring(p.subtype) .. ' '
+ local base = prefix .. string.format('%X', pic) .. ' ' .. pt .. ' ' .. tostring(p.subtype) .. ' '
if pt == 'glyph' then
s = base .. ' '
.. (p.char<0xF0000 and utfchar(p.char) or '')
for i=1,#p.data do
print_fn(s .. ' [' .. i .. '] = ' .. tostring(p.data[i].csname))
end
+ elseif p.subtype==16 then
+ s = s .. ' mode=' .. p.mode .. ', literal="' .. p.data .. '"'
+ print_fn(s)
else
print_fn(s)
end