Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1652)

Unified Diff: pkg/csslib/lib/src/token.dart

Issue 432513003: Fix csslib test failures on IE10. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/csslib/CHANGELOG.md ('k') | pkg/csslib/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)}...';
« no previous file with comments | « pkg/csslib/CHANGELOG.md ('k') | pkg/csslib/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698