nitc :: MDoc :: fill_infobox
# Append an entry for the doc in the given infobox
fun fill_infobox(res: HInfoBox)
do
if content.length < 2 then
res.new_field("doc").text(content.first)
return
end
var c = res.new_dropdown("doc", content.first)
for x in content.iterator.skip_head(1) do
c.append x
c.add_raw_html "<br>"
end
end
src/htmlight.nit:425,2--437,4