mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
IRCClient: Remove duplicate <div> wrapper around colored messages
This commit is contained in:
parent
6a401a9bde
commit
981f403287
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue