class Metanorma::Utils::Log

def write_entry(file, entry)

def write_entry(file, entry)
  entry[:context] &&= @c.encode(break_up_long_str(entry[:context], 40, 2))
  file.print <<~HTML
    <tr class="severity#{entry[:severity]}">
    <td>#{entry[:line]}</td><th><code>#{entry[:location]}</code></th>
    <td>#{entry[:message]}</td><td><pre>#{entry[:context]}</pre></td><td>#{entry[:severity]}</td></tr>
  HTML
end