https://bugzilla.wikimedia.org/show_bug.cgi?id=25018

           Summary: Parser generates unwanted line breaks
           Product: MediaWiki extensions
           Version: any
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: FCKeditor
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: qui...@gmx.net


Problem: FCKeditorParser.body.php inserts unwanted "\n".
This destroys the page layout.

Test: go to http://mediawiki.fckeditor.net/Sandbox 
      and enter some lines of text

Now switch to [Rich Editor] mode and back [Disable rich editor] multiple times
and see the additional unwanted line breaks and the self-modifying layout =:(

Solution: change FCKeditorParser.body.php, line 685 from 
  if( $paragraphStack === false ) {
    $output .= $t . "\n";
  }

into:

  if( $paragraphStack === false ) {
    $output .= $t;
  }

Note: This workaround does the job for me, but is not really tested in more
detail.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to