diff options
author | Hans Hagen <pragma@wxs.nl> | 2008-04-11 00:07:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2008-04-11 00:07:00 +0200 |
commit | 84c5ae8992fff7184ebc669a1eb654a92d55951c (patch) | |
tree | 4b2cd86ca0d8bfc4fa6ec3930a983bb3bbf444a9 /tex/context/base/node-ini.lua | |
parent | 55bcf0e607bb8af553581e74293687ed635bf877 (diff) | |
download | context-84c5ae8992fff7184ebc669a1eb654a92d55951c.tar.gz |
stable 2008.04.11 00:07
Diffstat (limited to 'tex/context/base/node-ini.lua')
-rw-r--r-- | tex/context/base/node-ini.lua | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tex/context/base/node-ini.lua b/tex/context/base/node-ini.lua index 195c604d2..76cbe3b76 100644 --- a/tex/context/base/node-ini.lua +++ b/tex/context/base/node-ini.lua @@ -321,6 +321,7 @@ end -- node-gly.lua if not fonts then fonts = { } end +if not fonts.otf then fonts.otf = { } end if not fonts.tfm then fonts.tfm = { } end if not fonts.tfm.id then fonts.tfm.id = { } end @@ -761,17 +762,17 @@ do local v = root[k] local t = type(v) if t == "number" then -if v == 0 then - -- skip -else - handle(("%s %s=%s,"):format(depth,key(k),v)) -end + if v == 0 then + -- skip + else + handle(("%s %s=%s,"):format(depth,key(k),v)) + end elseif t == "string" then -if v == "" then - -- skip -else - handle(("%s %s=%q,"):format(depth,key(k),v)) -end + if v == "" then + -- skip + else + handle(("%s %s=%q,"):format(depth,key(k),v)) + end elseif v then -- userdata or table serialize(v,k,handle,depth,m+1) end |