mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
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. :^)
This commit is contained in:
parent
956968d4b2
commit
c4be098b7d
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ public:
|
||||||
String to_string() const
|
String to_string() const
|
||||||
{
|
{
|
||||||
if (is_auto())
|
if (is_auto())
|
||||||
return "[auto]";
|
return "auto";
|
||||||
return String::formatted("[{} {}]", m_value, unit_name());
|
return String::formatted("{}{}", m_value, unit_name());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const Length& other) const
|
bool operator==(const Length& other) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue