mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
209526: Treat Japanese space as space.
Patch by Brodie Thiesfield <brofield@jellycan.com>. r=BenB, sr=mscott
This commit is contained in:
parent
8ad5abfed6
commit
f5134e7ee1
@ -53,9 +53,10 @@ const PRFloat64 growthRate = 1.2;
|
||||
// Bug 183111, editor now replaces multiple spaces with leading
|
||||
// 0xA0's and a single ending space, so need to treat 0xA0's as spaces.
|
||||
// 0xA0 is the Latin1/Unicode character for "non-breaking space (nbsp)"
|
||||
// Also recognize the Japanese ideographic space 0x3000 as a space.
|
||||
static inline PRBool IsSpace(const PRUnichar aChar)
|
||||
{
|
||||
return (nsCRT::IsAsciiSpace(aChar) || aChar == 0xA0);
|
||||
return (nsCRT::IsAsciiSpace(aChar) || aChar == 0xA0 || aChar == 0x3000);
|
||||
}
|
||||
|
||||
// Escape Char will take ch, escape it and append the result to
|
||||
|
Loading…
x
Reference in New Issue
Block a user