Index: pkg/csslib/lib/src/token.dart |
diff --git a/pkg/csslib/lib/src/token.dart b/pkg/csslib/lib/src/token.dart |
index 75ae6c5fc541ab594b4c9350c064c51420f54119..debd30145caf1a9be0bb137c1a9f810465fb488e 100644 |
--- a/pkg/csslib/lib/src/token.dart |
+++ b/pkg/csslib/lib/src/token.dart |
@@ -28,7 +28,7 @@ class Token { |
/** Returns a pretty representation of this token for error messages. **/ |
String toString() { |
var kindText = TokenKind.kindToString(kind); |
- var actualText = text; |
+ var actualText = text.trim(); |
if (kindText != actualText) { |
if (actualText.length > 10) { |
actualText = '${actualText.substring(0, 8)}...'; |