Files
test-repo/changelog_unreleased/javascript/9866.md
T

593 B
Raw Blame History

Fix unstable JSX formatting with U+3000 (#9866 by @fisker)

// Input
<p>
  <span /> {this.props.data.title} <span />
  //----- ^ U+3000 --------------- ^ U+3000
</p>

// Prettier stable
<p>
  <span />
   {this.props.data.title} <span />
  //----- ^ U+3000 --------------- ^ U+3000
</p>;

// Prettier stable (second format)
<p>
  <span /> {this.props.data.title} <span />
  //----- ^ U+3000 --------------- ^ U+3000
</p>;

// Prettier main
<p>
  <span /> {this.props.data.title} <span />
  //----- ^ U+3000 --------------- ^ U+3000
</p>;