summaryrefslogtreecommitdiff
path: root/Applications/IRCClient
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-26 09:23:17 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-26 11:59:04 +0200
commit981f40328700361e0f1da218cbd64b98463fce2f (patch)
treef8937eddaeb55a4a3dfd1109351ac35d1a80c778 /Applications/IRCClient
parent6a401a9bde779b4afb8fefabd352ada4a90a43f7 (diff)
downloadserenity-981f40328700361e0f1da218cbd64b98463fce2f.zip
IRCClient: Remove duplicate <div> wrapper around colored messages
Diffstat (limited to 'Applications/IRCClient')
-rw-r--r--Applications/IRCClient/IRCLogBuffer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Applications/IRCClient/IRCLogBuffer.cpp b/Applications/IRCClient/IRCLogBuffer.cpp
index da5ad1fef0..8904cca8df 100644
--- a/Applications/IRCClient/IRCLogBuffer.cpp
+++ b/Applications/IRCClient/IRCLogBuffer.cpp
@@ -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);