mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
IRCClient: Remove duplicate <div> wrapper around colored messages
This commit is contained in:
parent
6a401a9bde
commit
981f403287
Notes:
sideshowbarker
2024-07-19 05:22:17 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/981f4032870
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…
Reference in a new issue