Here is a patch to test RUNTIME-219.
I think RUNTIME-218 has not been tested neither
Index: test/src/org/ametys/runtime/test/cocoon/complex-result.xhtml =================================================================== --- test/src/org/ametys/runtime/test/cocoon/complex-result.xhtml (revision 352) +++ test/src/org/ametys/runtime/test/cocoon/complex-result.xhtml (working copy) @@ -19,7 +19,7 @@ <?processing-intruction value ?> <p>toto</p> <p></p> - <div>tata</div> + <div>tata<hr/><br/></div> <div></div> <input type="text" name="input" value="value" /> <textarea></textarea> Index: test/src/org/ametys/runtime/test/cocoon/complex.xml =================================================================== --- test/src/org/ametys/runtime/test/cocoon/complex.xml (revision 352) +++ test/src/org/ametys/runtime/test/cocoon/complex.xml (working copy) @@ -17,7 +17,7 @@ <?processing-intruction value ?> <p>toto</p> <p/> - <div>tata</div> + <div>tata<hr/><br></br></div> <div/> <input type="text" name="input" value="value"></input> <textarea></textarea> Index: test/src/org/ametys/runtime/test/cocoon/simple.xml =================================================================== --- test/src/org/ametys/runtime/test/cocoon/simple.xml (revision 352) +++ test/src/org/ametys/runtime/test/cocoon/simple.xml (working copy) @@ -5,7 +5,7 @@ <body> <p>toto</p> <p/> - <div>tata</div> + <div>tata<br/></div> <div/> </body> </html> \ No newline at end of file Index: test/src/org/ametys/runtime/test/cocoon/simple-result.xhtml =================================================================== --- test/src/org/ametys/runtime/test/cocoon/simple-result.xhtml (revision 352) +++ test/src/org/ametys/runtime/test/cocoon/simple-result.xhtml (working copy) @@ -7,7 +7,7 @@ <body> <p>toto</p> <p></p> - <div>tata</div> + <div>tata<br/></div> <div></div> </body> </html>