Line breaks are deleted if <div> elements are used

XMLWordPrintable

    • 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

      1. Create a new page
      2. 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>
        
      3. In the editor, create an empty line break between text1 and text2
      4. 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

              Assignee:
              Steve Haffenden (Inactive)
              Reporter:
              AmaliaA
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: