Page MenuHomePhabricator

Newline after header is eaten
Closed, ResolvedPublic

Description

Screenshot from URL

http://pagemigration.wmflabs.org/w/index.php?title=Extension:CheckUser/ko&oldid=176&action=edit has:

사용

기본 인터페이스

[[Special:CheckUser]]로 이동하세요.

which became:

사용 == === 기본 인터페이스 === # [[Special:CheckUser]]로 이동하세요. ...

on Special:PageMigration


Version: master
Severity: normal
URL: http://pagemigration.wmflabs.org/wiki/Special:PageMigration

Attached:

Details

Reference
bz65900

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:15 AM
bzimport set Reference to bz65900.
Nemo_bis created this task.May 29 2014, 4:58 PM

As visible in the screenshot, some newlines e.g. in a # list are shown as eaten as well, but they were saved correctly AFAICS: http://pagemigration.wmflabs.org/w/index.php?title=Extension:CheckUser/ko&oldid=449&action=edit

We probably need a saner strategy to handle whitespace in general: Niklas, any idea?
Here newlines and spaces were added semi-randomly: http://pagemigration.wmflabs.org/w/index.php?title=Translations:Extension:CheckUser/10/nl&action=edit when the paragraph was originally ok in http://pagemigration.wmflabs.org/w/index.php?title=Extension:CheckUser/nl&oldid=178&action=edit ; the diff is otherwise sane. http://pagemigration.wmflabs.org/w/index.php?title=Extension:CheckUser/nl&diff=471&oldid=280

Created attachment 15530
Last version

Attached:

pr4tiklahoti wrote:

As per the attachment above, the bug seems to be fixed. The problem was arising due to usage of divs previously and setting its .text property. Replacing divs by textareas seems to have solved the problem. So marking this as resolved.