IRCClient: Remove duplicate <div> wrapper around colored messages

This commit is contained in:
Andreas Kling 2020-06-26 09:23:17 +02:00
parent 6a401a9bde
commit 981f403287
Notes: sideshowbarker 2024-07-19 05:22:17 +09:00

View file

@ -86,11 +86,8 @@ void IRCLogBuffer::add_message(char prefix, const String& name, const String& te
void IRCLogBuffer::add_message(const String& text, Color color)
{
auto html = String::format(
"<div style=\"color: %s\">"
"<span>%s</span>"
"<span>%s</span>"
"</div>",
color.to_string().characters(),
"<span>%s</span>",
timestamp_string().characters(),
escape_html_entities(text).characters());
auto wrapper = Web::create_element(*m_document, Web::HTML::TagNames::div);