Page MenuHomePhabricator

newlines arent being showed in some cases with usability iniative editor
Closed, ResolvedPublic

Description

Author: slithytove2

Description:
I created a page using the editor of the usability initiative. When I edit the page on my computer using FF 3.5.6, the newlines are all there. When my colleague edits the page, the entire page is run together, ignoring all new lines.

I am not sure what browser/OS she is using. I have asked her and will update this when I know more.

I also asked her to make a change to the page and save it, to see if the newlines are gone, or if her browser just isn't recognizing them. I will update when I have more information on this


Version: unspecified
Severity: major

Details

Reference
bz22035

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:53 PM
bzimport set Reference to bz22035.

slithytove2 wrote:

screen shot of faulty display

Attached:

Chris_s_poll_sample.JPG (650×1 px, 201 KB)

What you're looking at is still experimental software at this point. However, I'd very much like to know which browser this bug appears on.

slithytove2 wrote:

Sorry for the delay.

In IE 7.0.6, the edit box displays with no new lines. Visually, it appears as if there is spaces where there should be \n.

It works correctly in FF and chrome, though.

slithytove2 wrote:

I believe I have tracked down the source of this bug.

UsabilityInitative/js/plugins/jquery.wikiEditor.html has 'white-space:pre-wrap;' in it's style. According to w3, that means 'Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks.' When testing this on separate pages in IE and FF, it seems that IE treats this the same as 'normal'. Changing this to wrap does not fix the problem, though.

(In reply to comment #4)

I believe I have tracked down the source of this bug.

UsabilityInitative/js/plugins/jquery.wikiEditor.html has
'white-space:pre-wrap;' in it's style. According to w3, that means 'Whitespace
is preserved by the browser. Text will wrap when necessary, and on line
breaks.' When testing this on separate pages in IE and FF, it seems that IE
treats this the same as 'normal'. Changing this to wrap does not fix the
problem, though.

The style should be correct: as you said, pre-wrap means "preserve whitespace", which also means preserving newlines. So I don't think this is the cause, but I'll poke at it.

slithytove2 wrote:

Exactly. IE 7 does not preserve the white-space or new lines when pre-wrap is specified.