Skip to content

Commit

Permalink
Fix #18151 (#18964)
Browse files Browse the repository at this point in the history
* Fix #18151

* Directly describe \ n without using sprintf.
  • Loading branch information
Shizumi authored and mcsf committed Dec 7, 2019
1 parent f58d0e3 commit 498b20a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/block-library/src/code/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ export const settings = {
icon,
example: {
attributes: {
content: __( '// A "block" is the abstract term used' ) + '\n' +
__( '// to describe units of markup that,' ) + '\n' +
__( '// when composed together, form the' ) + '\n' +
__( '// content or layout of a page.' ) + '\n' +
__( 'registerBlockType( name, settings );' ),
content: '// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );',
},
},
supports: {
Expand Down

0 comments on commit 498b20a

Please sign in to comment.