mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Bug 879: New constant UCS_SOFT_HYPHEN; use where applicable.
[ Backported from commit 70dc594d93
in
ELinks 0.12.GIT. --KON ]
This commit is contained in:
parent
a04af526ed
commit
dd7a3ad95b
@ -143,7 +143,7 @@ u2cp_(unicode_val_T u, int to, int no_nbsp_hack)
|
||||
/* To mark non breaking spaces, we use a special char NBSP_CHAR. */
|
||||
if (u == UCS_NO_BREAK_SPACE)
|
||||
return no_nbsp_hack ? " " : NBSP_CHAR_STRING;
|
||||
if (u == 0xad) return "";
|
||||
if (u == UCS_SOFT_HYPHEN) return "";
|
||||
|
||||
if (u < 0xa0) {
|
||||
unicode_val_T strange = strange_chars[u - 0x80];
|
||||
|
@ -6,6 +6,9 @@ typedef uint32_t unicode_val_T;
|
||||
/* U+00A0 NO-BREAK SPACE. */
|
||||
#define UCS_NO_BREAK_SPACE ((unicode_val_T) 0x00A0)
|
||||
|
||||
/* U+00AD SOFT HYPHEN. */
|
||||
#define UCS_SOFT_HYPHEN ((unicode_val_T) 0x00AD)
|
||||
|
||||
/* UCS/Unicode replacement character. */
|
||||
#define UCS_NO_CHAR ((unicode_val_T) 0xFFFD)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user