mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
181dea6c00
commit
c19feb00e3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user