From 498b20a9b2bc5c8bd36f119d4d2a9037001baabd Mon Sep 17 00:00:00 2001 From: Shizumi Yoshiaki Date: Sat, 7 Dec 2019 22:46:42 +0900 Subject: [PATCH] Fix #18151 (#18964) * Fix #18151 * Directly describe \ n without using sprintf. --- packages/block-library/src/code/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/block-library/src/code/index.js b/packages/block-library/src/code/index.js index e23a740b9d5e6..ff360df2a60c9 100644 --- a/packages/block-library/src/code/index.js +++ b/packages/block-library/src/code/index.js @@ -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: {