From f5134e7ee115120643ab5095012305e02a1f9e09 Mon Sep 17 00:00:00 2001 From: "mozilla.BenB%bucksch.org" Date: Mon, 19 Jan 2004 14:07:42 +0000 Subject: [PATCH] 209526: Treat Japanese space as space. Patch by Brodie Thiesfield . r=BenB, sr=mscott --- netwerk/streamconv/converters/mozTXTToHTMLConv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp b/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp index 31477e1d7fe1..5780546ae9d9 100644 --- a/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp +++ b/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp @@ -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