do not use placeholder description text from api

This commit is contained in:
Daniel Kolesa 2019-10-09 16:24:01 +02:00
parent f75e5e6b1d
commit df7d55c22f
3 changed files with 6 additions and 7 deletions

View File

@ -116,7 +116,7 @@ end
M.brief_str_get = function(eos, obj, obj2)
if not obj and not obj2 then
return "No description supplied."
return nil
end
if not obj then
obj = obj2
@ -211,9 +211,7 @@ M.impl_description_get = function(eos, impl, cl)
else
bdoc = M.brief_str_get(eos, docf)
end
if bdoc ~= "No description supplied." then
return bdoc
end
return bdoc
end
local nspaces_group = function(ns)

View File

@ -48,7 +48,7 @@ local build_reftable = function(f, title, t)
eoutils.obj_nspaces_get(v, true),
v:name_get()
):finish(),
docm.brief_str_get(eos, v:documentation_get())
docm.brief_str_get(eos, v:documentation_get()) or "No description supplied."
}
end
table.sort(nt, function(v1, v2) return v1[1] < v2[1] end)
@ -352,7 +352,7 @@ local write_evtable = function(f, tcl, tbl)
-- description
local bdoc = docm.brief_str_get(eos, ev:documentation_get())
if bdoc ~= "No description supplied." then
if bdoc then
f:write_br(true)
f:write_raw("> ")
f:write_raw(bdoc)
@ -403,7 +403,7 @@ local write_inherit_evtable = function(f, tcl, tbl)
f:write_raw(" | ")
local bdoc = docm.brief_str_get(eos, ev:documentation_get())
if bdoc ~= "No description supplied." then
if bdoc then
f:write_raw(bdoc)
end

View File

@ -7,6 +7,7 @@
"[[" .. doc.link_target_get(eoutils.obj_nspaces_get(v))
.. "|" .. v:name_get() .. "]]",
doc.brief_str_get(eos, v:documentation_get())
or "No description supplied."
}
end
return cnt