diff --git a/src/token.coffee b/src/token.coffee index d3e17a570..2c82fa23f 100644 --- a/src/token.coffee +++ b/src/token.coffee @@ -229,7 +229,7 @@ class Token else match hasLeadingWhitespace: -> - @firstNonWhitespaceIndex? and @firstNonWhitespaceIndex > 0 + !@isPhantom and @firstNonWhitespaceIndex? and @firstNonWhitespaceIndex > 0 hasTrailingWhitespace: -> @firstTrailingWhitespaceIndex? and @firstTrailingWhitespaceIndex < @value.length