Skip to content

Commit

Permalink
Make it explicit that we keep multiple consecutive spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
karl committed May 7, 2017
1 parent 4fd4444 commit 1858d5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/jsx_escape/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exports[`nbsp.js 1`] = `
many_nbsp = <div>&nbsp; &nbsp; </div>
single_nbsp = <div>&nbsp;</div>
many_raw_nbsp = <div>   </div>
many_raw_spaces = <div> </div>
amp = <span>foo &amp; bar</span>
Expand All @@ -26,6 +27,7 @@ raw_amp = <span>foo & bar</span>
many_nbsp = <div>&nbsp; &nbsp; </div>;
single_nbsp = <div>&nbsp;</div>;
many_raw_nbsp = <div> </div>;
many_raw_spaces = <div> </div>;
amp = <span>foo &amp; bar</span>;
raw_amp = <span>foo & bar</span>;
Expand All @@ -36,6 +38,7 @@ exports[`nbsp.js 2`] = `
many_nbsp = <div>&nbsp; &nbsp; </div>
single_nbsp = <div>&nbsp;</div>
many_raw_nbsp = <div>   </div>
many_raw_spaces = <div> </div>
amp = <span>foo &amp; bar</span>
Expand All @@ -44,6 +47,7 @@ raw_amp = <span>foo & bar</span>
many_nbsp = <div>&nbsp; &nbsp; </div>;
single_nbsp = <div>&nbsp;</div>;
many_raw_nbsp = <div> </div>;
many_raw_spaces = <div> </div>;
amp = <span>foo &amp; bar</span>;
raw_amp = <span>foo & bar</span>;
Expand Down
1 change: 1 addition & 0 deletions tests/jsx_escape/nbsp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
many_nbsp = <div>&nbsp; &nbsp; </div>
single_nbsp = <div>&nbsp;</div>
many_raw_nbsp = <div>   </div>
many_raw_spaces = <div> </div>


amp = <span>foo &amp; bar</span>
Expand Down

0 comments on commit 1858d5e

Please sign in to comment.