diff --git a/e2e/fixtures/wxr-simple.xml b/e2e/fixtures/wxr-simple.xml index 39665352..ce7b5d64 100644 --- a/e2e/fixtures/wxr-simple.xml +++ b/e2e/fixtures/wxr-simple.xml @@ -56,6 +56,9 @@

Two roads diverged in a yellow wood,
And sorry I could not travel both

+ + +

One seemed great, but the other seemed great too. diff --git a/e2e/import-wxr.spec.js b/e2e/import-wxr.spec.js index 8037cd1e..c37c549a 100644 --- a/e2e/import-wxr.spec.js +++ b/e2e/import-wxr.spec.js @@ -44,6 +44,9 @@ PARSERS.forEach((parser) => {

Two roads diverged in a yellow wood,
And sorry I could not travel both

+ + +

One seemed great, but the other seemed great too. @@ -213,6 +216,9 @@ test.describe('General tests', () => {

Two roads diverged in a yellow wood,
And sorry I could not travel both

+ + +

One seemed great, but the other seemed great too. diff --git a/src/php-toolkit/DataLiberation/BlockMarkup/class-blockmarkupprocessor.php b/src/php-toolkit/DataLiberation/BlockMarkup/class-blockmarkupprocessor.php index 9e0f9267..96d7a8ac 100644 --- a/src/php-toolkit/DataLiberation/BlockMarkup/class-blockmarkupprocessor.php +++ b/src/php-toolkit/DataLiberation/BlockMarkup/class-blockmarkupprocessor.php @@ -496,7 +496,8 @@ private function block_attribute_updates_to_modifiable_text_updates() { ' ' . $this->block_name . ' ' . - $encoded_attributes + $encoded_attributes . + ( $this->is_self_closing_block() ? '/' : '' ) ); return true;