-
Type:
Bug
-
Resolution: Obsolete
-
Priority:
Low
-
None
-
Affects Version/s: 4.1.9, 4.2, 4.3
-
Component/s: None
Line breaks are deleted upon saving a page if <div> elements are used
Steps to reproduce
- Create a new page
- Add the following XHTML code
Unable to find source-code formatter for language: xhtml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
<div>text1</div> <div>text2</div>
- In the editor, create an empty line break between text1 and text2
- Save the page
The result is that the line break is deleted upon saving the page. Try to add few line breaks and the result is the same
Workaround
Use <p> rather than <div> tags