diff --git a/blocks/library/text-columns/index.js b/blocks/library/text-columns/index.js index b94546ace2182..ab209b2e4c369 100644 --- a/blocks/library/text-columns/index.js +++ b/blocks/library/text-columns/index.js @@ -81,7 +81,7 @@ registerBlockType( 'core/text-columns', { /> ), -
+
{ times( columns, ( index ) =>
) } -
, + , ]; }, save( { attributes } ) { const { width, content, columns } = attributes; return ( -
+
{ times( columns, ( index ) =>

{ content && content[ index ].children }

) } -
+ ); }, } ); diff --git a/blocks/test/fixtures/core__text-columns.html b/blocks/test/fixtures/core__text-columns.html index fcd9d49a9e79d..a273839c39765 100644 --- a/blocks/test/fixtures/core__text-columns.html +++ b/blocks/test/fixtures/core__text-columns.html @@ -1,10 +1,10 @@ -
+

One

Two

-
+ diff --git a/blocks/test/fixtures/core__text-columns.json b/blocks/test/fixtures/core__text-columns.json index ef3ee780fa930..f0caa26a89003 100644 --- a/blocks/test/fixtures/core__text-columns.json +++ b/blocks/test/fixtures/core__text-columns.json @@ -19,6 +19,6 @@ "columns": 2, "width": "center" }, - "originalContent": "
\n
\n

One

\n
\n
\n

Two

\n
\n
" + "originalContent": "
\n
\n

One

\n
\n
\n

Two

\n
\n
" } ] diff --git a/blocks/test/fixtures/core__text-columns.parsed.json b/blocks/test/fixtures/core__text-columns.parsed.json index a7c458a517c2b..a03bb73ef0112 100644 --- a/blocks/test/fixtures/core__text-columns.parsed.json +++ b/blocks/test/fixtures/core__text-columns.parsed.json @@ -5,7 +5,7 @@ "width": "center" }, "innerBlocks": [], - "innerHTML": "\n
\n
\n

One

\n
\n
\n

Two

\n
\n
\n" + "innerHTML": "\n
\n
\n

One

\n
\n
\n

Two

\n
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core__text-columns.serialized.html b/blocks/test/fixtures/core__text-columns.serialized.html index cfed9fc433e6a..34ce5cd31ac62 100644 --- a/blocks/test/fixtures/core__text-columns.serialized.html +++ b/blocks/test/fixtures/core__text-columns.serialized.html @@ -1,10 +1,10 @@ -
+

One

Two

-
+