summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-19 20:46:56 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-19 20:46:56 +0000
commitab7542e912c54907690d34779d743eaef874b7e8 (patch)
tree7829f2c4e8b06b4a0d7647fb8b5081c5ba6a61b5 /src
parent031c9da01cd3d9b4f94a3e97bd4cea0283dcc43e (diff)
downloadopenttd-ab7542e912c54907690d34779d743eaef874b7e8.tar.xz
(svn r12385) -Fix [FS#ln]: Non-breaking spaces should not be broken.
Diffstat (limited to 'src')
-rw-r--r--src/string_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_func.h b/src/string_func.h
index 3a4303293..0733931f3 100644
--- a/src/string_func.h
+++ b/src/string_func.h
@@ -142,7 +142,8 @@ static inline bool IsPrintable(WChar c)
}
/**
- * Check whether UNICODE character is whitespace or not
+ * Check whether UNICODE character is whitespace or not, i.e. whether
+ * this is a potential line-break character.
* @param c UNICODE character to check
* @return a boolean value whether 'c' is a whitespace character or not
* @see http://www.fileformat.info/info/unicode/category/Zs/list.htm
@@ -151,7 +152,6 @@ static inline bool IsWhitespace(WChar c)
{
return
c == 0x0020 /* SPACE */ ||
- c == 0x00A0 /* NO-BREAK SPACE */ ||
c == 0x3000 /* IDEOGRAPHIC SPACE */
;
}