docgen: fix generation and generate notes correctly

This commit is contained in:
Daniel Kolesa 2017-11-02 14:29:20 +01:00
parent 9ec1b4fa53
commit e46d6d41d2
2 changed files with 3 additions and 2 deletions

View File

@ -224,7 +224,7 @@ M.Class = Node:clone {
end
ret = {}
for cl in self.class:inherits_get() do
ret[#ret + 1] = cl
ret[#ret + 1] = M.Class(cl)
end
self._cache_inhc = ret
return ret

View File

@ -407,7 +407,8 @@ writers["dokuwiki"] = util.Object:clone {
local hasraw, hasnote = false, false
while tokp:tokenize() do
local tp = tokp:type_get()
if notetypes[tp] then
local tag = notetypes[tp]
if tag then
self:write_raw(tag)
hasnote = true
else