Bug 371839. Treat \n as space that the line-breaker will use as a word boundary. The main effect is that we don't have to scan backwards past \n when looking for a place to start linebreaking. r=smontagu

This commit is contained in:
Robert O'Callahan 2009-07-10 14:04:52 +12:00
parent 181dea6c00
commit c19feb00e3

View File

@ -77,6 +77,7 @@ NS_IsSpace(PRUnichar u)
{
return u == 0x0020 || // SPACE
u == 0x0009 || // CHARACTER TABULATION
u == 0x000A || // LINE FEED
u == 0x000D || // CARRIAGE RETURN
(0x2000 <= u && u <= 0x2006) || // EN QUAD, EM QUAD, EN SPACE,
// EM SPACE, THREE-PER-EM SPACE,