Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2723

Empty paragraphs should not be displayed even if they have styles applied to them

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6 M2
    • Fix Version/s: 1.7.1, 1.8 M1
    • Component/s: WYSIWYG Editor
    • Labels:
      None
    • Tests:
      Integration
    • Similar issues:

      Description

      To reproduce:

      • In wiki mode type
        (% style="color: blue; text-align: center;" %)
        Hello world
        
      • In wysiwyg editor, move cursor to space between "Hello" and "world" and type return several times (say 3 times)
      • Save

      You'll see the following in wiki mode:

      (% style="color: blue; text-align: center;" %)
      Hello 
      
      
      (% style="color: blue; text-align: center;" %)
      
      
      
      (% style="color: blue; text-align: center;" %)
      
      
      
      (% style="color: blue; text-align: center;" %)
      world
      

      I don't know yet where this should be fixed:

      • in the XHTML parser
      • in the HTML cleaner
      • in the editor itself

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: