From 7344524fbe60fa1c9e7d9b7baecb23d00b772866 Mon Sep 17 00:00:00 2001
From: konradoboza <34310128+konradoboza@users.noreply.github.com>
Date: Wed, 11 Apr 2018 23:53:44 +0200
Subject: [PATCH] Fix EZP-28967: RichText FieldType removes line breaks inside
table cells (#2301)
---
.../stylesheets/docbook/xhtml5/edit/core.xsl | 12 ++++++++++++
.../stylesheets/docbook/xhtml5/output/core.xsl | 12 ++++++++++++
.../Resources/stylesheets/xhtml5/edit/docbook.xsl | 8 ++++++--
.../Xslt/_fixtures/docbook/018-htmlTable.xml | 6 ++++--
.../Xslt/_fixtures/ezxml/018-htmlTable.lossy.xml | 6 ++++--
.../Xslt/_fixtures/xhtml5/edit/018-htmlTable.xml | 4 ++--
.../Xslt/_fixtures/xhtml5/output/018-htmlTable.xml | 4 ++--
7 files changed, 42 insertions(+), 10 deletions(-)
diff --git a/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl b/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl
index 00533a7c142..24981f3495c 100644
--- a/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl
+++ b/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/edit/core.xsl
@@ -358,6 +358,12 @@
+
+
+
+
+
+
@@ -421,6 +427,12 @@
+
+
+
+
+
+
diff --git a/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/output/core.xsl b/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/output/core.xsl
index 4416f2f2f6d..bffecfeac64 100644
--- a/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/output/core.xsl
+++ b/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/docbook/xhtml5/output/core.xsl
@@ -365,6 +365,12 @@
+
+
+
+
+
+
@@ -428,6 +434,12 @@
+
+
+
+
+
+
diff --git a/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl b/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl
index 258e9d1161b..c06992c6450 100644
--- a/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl
+++ b/eZ/Publish/Core/FieldType/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl
@@ -437,7 +437,9 @@
-
+
+
+
@@ -491,7 +493,9 @@
-
+
+
+
diff --git a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/docbook/018-htmlTable.xml b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/docbook/018-htmlTable.xml
index 512f91e8840..91facf83628 100644
--- a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/docbook/018-htmlTable.xml
+++ b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/docbook/018-htmlTable.xml
@@ -8,11 +8,13 @@
Table caption.
- 11 |
+ 11
+with some line break |
12 |
- 21 |
+ 21
+with some line break |
22 |
diff --git a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/ezxml/018-htmlTable.lossy.xml b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/ezxml/018-htmlTable.lossy.xml
index e47ee0e6022..504a9537ebc 100644
--- a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/ezxml/018-htmlTable.lossy.xml
+++ b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/ezxml/018-htmlTable.lossy.xml
@@ -19,7 +19,8 @@ the same as a original.
- 11
+ 11
+with some line break
|
12
@@ -27,7 +28,8 @@ the same as a original.
|
- 21
+ 21
+with some line break
|
22
diff --git a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/edit/018-htmlTable.xml b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/edit/018-htmlTable.xml
index 96155f47b06..27c134686e3 100644
--- a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/edit/018-htmlTable.xml
+++ b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/edit/018-htmlTable.xml
@@ -4,11 +4,11 @@
Table caption.
|
- 11 |
+ 11 with some line break |
12 |
- 21 |
+ 21 with some line break |
22 |
diff --git a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/output/018-htmlTable.xml b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/output/018-htmlTable.xml
index 32165f541e6..ec6f249d3fc 100644
--- a/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/output/018-htmlTable.xml
+++ b/eZ/Publish/Core/FieldType/Tests/RichText/Converter/Xslt/_fixtures/xhtml5/output/018-htmlTable.xml
@@ -4,11 +4,11 @@
Table caption.
- 11 |
+ 11 with some line break |
12 |
- 21 |
+ 21 with some line break |
22 |