From ab34cdb33d6cdbf2976e104488353cd4d151bfa6 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Mon, 2 Dec 2019 16:56:05 +0000 Subject: [PATCH 1/2] Dont use zero width sapce for EZP-29882 --- .../Resources/stylesheets/docbook/xhtml5/edit/core.xsl | 2 +- .../Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml | 4 ++-- .../xhtml5/edit/035-itemizedListWithNestedElements.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl b/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl index 1f2177e6..7b6e0d5c 100644 --- a/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl +++ b/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl @@ -585,7 +585,7 @@ - + ao-upcast-placeholder diff --git a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml index 52aaf31d..a13e0641 100644 --- a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml +++ b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml @@ -1,10 +1,10 @@
-

Some for the otherwise unremarkable paragraph.

+

Some ao-upcast-placeholder for the otherwise unremarkable paragraph.

This paragraph is just showing off its medium content.

-

Some content.

+

Someao-upcast-placeholder content.

diff --git a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml index 7c44a81d..910f2e11 100644 --- a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml +++ b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml @@ -1,6 +1,6 @@
    -
  • This is a list item
  • +
  • This is a list item ao-upcast-placeholder
From 980505ccf3a185cf6b7f027235ccc334599581a2 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 21 Jan 2020 11:59:53 +0100 Subject: [PATCH 2/2] Renamed ao-upcast-placeholder to oe-upcast-placeholder --- .../Resources/stylesheets/docbook/xhtml5/edit/core.xsl | 2 +- .../Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml | 4 ++-- .../xhtml5/edit/035-itemizedListWithNestedElements.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl b/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl index 7b6e0d5c..2efde989 100644 --- a/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl +++ b/src/lib/eZ/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl @@ -585,7 +585,7 @@ - ao-upcast-placeholder + oe-upcast-placeholder diff --git a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml index a13e0641..7fce1ac4 100644 --- a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml +++ b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/023-embedInline.xml @@ -1,10 +1,10 @@
-

Some ao-upcast-placeholder for the otherwise unremarkable paragraph.

+

Some oe-upcast-placeholder for the otherwise unremarkable paragraph.

This paragraph is just showing off its medium content.

-

Someao-upcast-placeholder content.

+

Someoe-upcast-placeholder content.

diff --git a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml index 910f2e11..d5303d3c 100644 --- a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml +++ b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/035-itemizedListWithNestedElements.xml @@ -1,6 +1,6 @@
    -
  • This is a list item ao-upcast-placeholder
  • +
  • This is a list item oe-upcast-placeholder