mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
LibWeb: Include sign in token debug info, if the type has explicit sign
This commit is contained in:
parent
5ca8e2a751
commit
2b3c07f4ad
Notes:
sideshowbarker
2024-07-17 11:09:30 +09:00
Author: https://github.com/stelar7 Commit: https://github.com/SerenityOS/serenity/commit/2b3c07f4ad Pull-request: https://github.com/SerenityOS/serenity/pull/13966 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ String Token::to_debug_string() const
|
|||
case Type::Delim:
|
||||
return String::formatted("Delim: {}", m_value);
|
||||
case Type::Number:
|
||||
return String::formatted("Number: {} (number_type: {})", m_number_value.value(), m_number_value.is_integer() ? "Integer" : "Number");
|
||||
return String::formatted("Number: {}{} (number_type: {})", m_number_value.value() > 0 && m_number_value.is_integer_with_explicit_sign() ? "+" : "", m_number_value.value(), m_number_value.is_integer() ? "Integer" : "Number");
|
||||
case Type::Percentage:
|
||||
return String::formatted("Percentage: {}% (number_type: {})", percentage(), m_number_value.is_integer() ? "Integer" : "Number");
|
||||
case Type::Dimension:
|
||||
|
|
Loading…
Add table
Reference in a new issue