Last modified: 2010-01-22 23:25:37 UTC
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
Created attachment 6930 [details]
screen shot of faulty display
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.
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.
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.
Exactly. IE 7 does not preserve the white-space or new lines when pre-wrap is specified.
Trevor fixed this in r61103.