Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.9 M1, 1.8.2
-
None
-
Unit
-
Unknown
-
Description
Consider the following test case (passing):
.#-----------------------------------------------------
.input|xhtml/1.0
.#-----------------------------------------------------
<div style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff"><p>The first paragraph</p><p>The second paragraph</p></div>
.#-----------------------------------------------------
.expect|xwiki/2.0
.#-----------------------------------------------------
(% style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff" %)
(((The first paragraph
The second paragraph)))
But the reverse transformation fails:
.#-----------------------------------------------------
.input|xwiki/2.0
.#-----------------------------------------------------
(% style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff" %)
(((The first paragraph
The second paragraph)))
.#-----------------------------------------------------
.expect|xhtml/1.0
.#-----------------------------------------------------
<div style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff"><p>The first paragraph</p><p>The second paragraph</p></div>
Upon further investigation what seems to happen is that the newline between the parameters and the group block is not supported by the rendering module. This is proven by the following (passing) test case:
.#-----------------------------------------------------
.input|xwiki/2.0
.#-----------------------------------------------------
(% style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff" %)(((The first paragraph
The second paragraph)))
.#-----------------------------------------------------
.expect|xhtml/1.0
.#-----------------------------------------------------
<div style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff"><p>The first paragraph</p><p>The second paragraph</p></div>
Attachments
Issue Links
- blocks
-
XWIKI-3368 OfficeImporter does not import word documents containing internal frames correctly
- Closed