From 2bd91dcf6f49601193bc82e16f356cc3114aca96 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 24 Apr 2022 12:29:30 +0200 Subject: [PATCH] Replace inexistant lightmagenta CSS colour with hotpink This improves compatibility with clients respecting the CSS specification. Thanks PulkoMandy, who found it using libcss in Renga! --- src/bridge/colors.cpp | 2 +- tests/colors.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bridge/colors.cpp b/src/bridge/colors.cpp index 7662425..9c82096 100644 --- a/src/bridge/colors.cpp +++ b/src/bridge/colors.cpp @@ -24,7 +24,7 @@ static const char* irc_colors_to_css[IRC_NUM_COLORS] = { "cyan", "lightcyan", "lightblue", - "lightmagenta", + "hotpink", "gray", "white", }; diff --git a/tests/colors.cpp b/tests/colors.cpp index bf52989..9a6bf9c 100644 --- a/tests/colors.cpp +++ b/tests/colors.cpp @@ -41,7 +41,7 @@ TEST_CASE("IRC colors parsing") CHECK(cleaned_up.empty()); std::tie(cleaned_up, xhtml) = irc_format_to_xhtmlim("[\x1D13dolphin-emu/dolphin\x1D] 03foo commented on #283 (Add support for the guide button to XInput): 02http://example.com"); - CHECK(xhtml->to_string() == "[dolphin-emu/dolphin] foo commented on #283 (Add support for the guide button to XInput): http://example.com"); + CHECK(xhtml->to_string() == "[dolphin-emu/dolphin] foo commented on #283 (Add support for the guide button to XInput): http://example.com"); CHECK(cleaned_up == "[dolphin-emu/dolphin] foo commented on #283 (Add support for the guide button to XInput): http://example.com"); std::tie(cleaned_up, xhtml) = irc_format_to_xhtmlim("0e46ab by 03Pierre Dindon [090|091|040] 02http://example.net/Ojrh4P media: avoid pop-in effect when loading thumbnails by specifying an explicit size");