summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-11-02 14:29:20 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-11-02 14:29:20 +0100
commite46d6d41d275f26e06383e831a40beb8aaa7ae6a (patch)
treee93af945fd743c7327ba089adc555938c79b5cb7
parent9ec1b4fa532f461970ddcd3d1742a0bef4e16550 (diff)
docgen: fix generation and generate notes correctly
-rw-r--r--src/scripts/elua/apps/docgen/doctree.lua2
-rw-r--r--src/scripts/elua/apps/docgen/writer.lua3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/scripts/elua/apps/docgen/doctree.lua b/src/scripts/elua/apps/docgen/doctree.lua
index f4f55af4a3..857165f0e1 100644
--- a/src/scripts/elua/apps/docgen/doctree.lua
+++ b/src/scripts/elua/apps/docgen/doctree.lua
@@ -224,7 +224,7 @@ M.Class = Node:clone {
224 end 224 end
225 ret = {} 225 ret = {}
226 for cl in self.class:inherits_get() do 226 for cl in self.class:inherits_get() do
227 ret[#ret + 1] = cl 227 ret[#ret + 1] = M.Class(cl)
228 end 228 end
229 self._cache_inhc = ret 229 self._cache_inhc = ret
230 return ret 230 return ret
diff --git a/src/scripts/elua/apps/docgen/writer.lua b/src/scripts/elua/apps/docgen/writer.lua
index 4690ed7c91..59b81952a7 100644
--- a/src/scripts/elua/apps/docgen/writer.lua
+++ b/src/scripts/elua/apps/docgen/writer.lua
@@ -407,7 +407,8 @@ writers["dokuwiki"] = util.Object:clone {
407 local hasraw, hasnote = false, false 407 local hasraw, hasnote = false, false
408 while tokp:tokenize() do 408 while tokp:tokenize() do
409 local tp = tokp:type_get() 409 local tp = tokp:type_get()
410 if notetypes[tp] then 410 local tag = notetypes[tp]
411 if tag then
411 self:write_raw(tag) 412 self:write_raw(tag)
412 hasnote = true 413 hasnote = true
413 else 414 else