Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 15 years ago

#1248 closed defect (bug) (fixed)

Editing posts produces linebreak madness

Reported by: anonymousbugger's profile anonymousbugger Owned by: matt's profile matt
Milestone: Priority: normal
Severity: major Version: 1.5.1
Component: Administration Keywords:
Focuses: Cc:

Description

When writing long lines, WordPress automagically inserts linebreaks. This screws up the formatting if you edit a post.

Change History (7)

#1 @anonymousbugger
19 years ago

  • Patch set to No

#2 @michel v
19 years ago

Could reproduce this behaviour with a trunk build, in Firefox.
Couldn't reproduce it in any other browser except Gecko-based ones.

So it looks like Firefox (or [insert Gecko browser name here]) adds linebreaks in the textarea when it renders it.
When WP receives the updated content, it sees linebreaks and adds br tags.

This looks like a Gecko-specific bug, that, given the platform's marketshare, ought to be worked around in WP.

#3 @mdawaffe
19 years ago

The problem is generated by the javascript introduced in changeset 2536: http://trac.wordpress.org/changeset/2536. Downgrading to a prior revision restored functionality: svn up -r 2535

EDIT: typos

edited on: 04-17-05 00:05

#4 @anonymousbugger
19 years ago

I only tested it with Epiphany.

Shouldn't that commit get reverted?

#5 @MC_incubus
19 years ago

I say we kill it, and wait for a 1.6 or at least a 1.5.2 release to really flesh this out better, maybe even exploring an AJAX solution. No use delaying the 1.5.1 release because of bugs introduced by a brand new experimental feature.

Please don't flame me. :-)

#7 @matt
19 years ago

  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed

Autosave rolled back

Note: See TracTickets for help on using tickets.