(datainfo)
return "\n".join(html)
Summarize a data info as a html fragment.
Summarize a data info as a html fragment.
Summarize a data info as a html fragment .
def description_html(datainfo):
    # type: (Namespace) -> str
    """
    Summarize a data info as a html fragment.
    """
    html = []
    year = " ({})".format(str(datainfo.year)) if datainfo.year else ""
    source = ", from {}".format(datainfo.source) if datainfo.source else ""

    html.append("<b>{}</b>{}{}".format(escape(datainfo.title), year, source))
    html.append("<p>{}</p>".format(datainfo.description))
    seealso = make_html_list(datainfo.seealso)
    if seealso:
        html.append("<small><b>See Also</b>\n" + seealso + "</small>")
    refs = make_html_list(datainfo.references)
    if refs:
        html.append("<small><b>References</b>\n" + refs + "</small>")
    return "\n".join(html)
def description_html ( datainfo ) : # type: (Namespace) -> str html = [ ] year = " ({})" . format ( str ( datainfo . year ) ) if datainfo . year else "" source = ", from {}" . format ( datainfo . source ) if datainfo . source else "" html . append ( "<b>{}</b>{}{}" . format ( escape ( datainfo . title ) , year , source ) ) html . append ( "<p>{}</p>" . format ( datainfo . description ) ) seealso = make_html_list ( datainfo . seealso ) if seealso : html . append ( "<small><b>See Also</b>\n" + seealso + "</small>" ) refs = make_html_list ( datainfo . references ) if refs : html . append ( "<small><b>References</b>\n" + refs + "</small>" ) return "\n" . join ( html )