summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Length.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-03 17:58:19 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-03 17:59:15 +0200
commitc4be098b7d9ccbacc9d51bd82ff03ea9d7e734ac (patch)
treec29cd3ba2f74e86ae2f16cbbcbe4fd627c74e7d6 /Userland/Libraries/LibWeb/CSS/Length.h
parent956968d4b28c86883dee5df0e178826f8be7e418 (diff)
downloadserenity-c4be098b7d9ccbacc9d51bd82ff03ea9d7e734ac.zip
LibWeb: Remove pointless brackets from Length::to_string()
Since we expose these strings to web content via LengthStyleValue, let's not have non-standard brackets in there to confuse anyone trying to parse these values. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Length.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Length.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Length.h b/Userland/Libraries/LibWeb/CSS/Length.h
index 615d8cb4a8..f328263427 100644
--- a/Userland/Libraries/LibWeb/CSS/Length.h
+++ b/Userland/Libraries/LibWeb/CSS/Length.h
@@ -141,8 +141,8 @@ public:
String to_string() const
{
if (is_auto())
- return "[auto]";
- return String::formatted("[{} {}]", m_value, unit_name());
+ return "auto";
+ return String::formatted("{}{}", m_value, unit_name());
}
bool operator==(const Length& other) const