Skip to content

Commit

Permalink
Escape EOL whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkinkead committed Feb 18, 2016
1 parent c67f37d commit f7c43cc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class CommentFormatterTest extends AbstractFormatterTest {
|"""

"""/**
| * Trailing whitespace on this line and the line below should be stripped.
| *
| * Trailing whitespace on this line and the line below should be stripped.\u0020\u0020
| *\u0020\u0020\u0020\u0020
| */
|""" ==>
"""/**
Expand All @@ -110,23 +110,23 @@ class CommentFormatterTest extends AbstractFormatterTest {
| */
|"""

"""// Trailing whitespace in single-line comments should be stripped.
|//
"""// Trailing whitespace in single-line comments should be stripped.\u0020\u0020
|//\u0020\u0020
|""" ==>
"""// Trailing whitespace in single-line comments should be stripped.
|//
|"""

"""/* Normal multi-line comment.
| * Trailing whitespace here should be stripped.
| * Trailing whitespace here should be stripped.\u0020\u0020
| */
|""" ==>
"""/* Normal multi-line comment.
| * Trailing whitespace here should be stripped.
| */
|"""

"""/*
"""/*\u0020
| Comment with trailing whitespace above.
| Indent should be preserved, whitespace trimmed.
| Visible separation (space below) should be added.
Expand Down

0 comments on commit f7c43cc

Please sign in to comment.