fdoc

subroutinedoc_blockprivate

subroutine doc_block(html, b)

Write html as documentation, unless it is blank.

Arguments

NameTypeIntentAttributesDescription
htmlcharacter(len=*)in

the documentation

btype(buffer_t)inout

the HTML

Calls

Called by

Source

Show the code
subroutine doc_block(html, b)
    character(len=*), intent(in) :: html    !! the documentation
    type(buffer_t), intent(inout) :: b      !! the HTML

    if (len_trim(html) == 0) return
    call add(b, '<div class="doc">'//achar(10))
    call add(b, html)
    call add(b, achar(10)//'</div>'//achar(10))
end subroutine doc_block