Skip to content

Commit

Permalink
Wrap chemical formulas in LTR marks, see phetsims/chipper#1355, phets…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jul 15, 2024
1 parent 31bfedd commit 92373c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/SingleCollectionBoxNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SingleCollectionBoxNode extends CollectionBoxNode {
super( box, toModelBounds, showDialogCallback );
assert && assert( box.capacity === 1 );
this.insertChild( 0, new RichText( StringUtils.fillIn( buildAMoleculeStrings.collectionSinglePattern, {
general: box.moleculeType.getGeneralFormulaFragment(),
general: StringUtils.wrapLTR( box.moleculeType.getGeneralFormulaFragment() ),
display: box.moleculeType.getDisplayName()
} ), {
font: new PhetFont( { size: 16, weight: 'bold' } ),
Expand Down

0 comments on commit 92373c0

Please sign in to comment.