class Metanorma::Utils::Log
def write_key(file, key)
def write_key(file, key) file.puts <<~HTML <h2 id="#{to_ncname(key)}">#{key}</h2>\n<table border="1"> <thead><th width="5%">Line</th><th width="20%">ID</th> <th width="30%">Message</th><th width="40%">Context</th><th width="5%">Severity</th></thead> <tbody> HTML @log[key].sort_by { |a| [a[:line], a[:location], a[:message]] } .each do |n| write_entry(file, render_preproc_entry(n)) end file.puts "</tbody></table>\n" end