mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-17 01:16:16 -04:00
Bug 879: New constant UCS_SOFT_HYPHEN; use where applicable.
This commit is contained in:
parent
e11b784067
commit
c85a226ea4
@ -189,7 +189,7 @@ u2cp_(unicode_val_T u, int to, enum nbsp_mode nbsp_mode)
|
||||
if (nbsp_mode == NBSP_MODE_HACK) return NBSP_CHAR_STRING;
|
||||
else /* NBSP_MODE_ASCII */ return " ";
|
||||
}
|
||||
if (u == 0xad) return "";
|
||||
if (u == UCS_SOFT_HYPHEN) return "";
|
||||
|
||||
if (u < 0xa0) {
|
||||
unicode_val_T strange = strange_chars[u - 0x80];
|
||||
|
@ -10,6 +10,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)
|
||||
|
||||
/* U+FFFD REPLACEMENT CHARACTER. Used when no Unicode mapping is
|
||||
* known for a byte in a codepage, or when invalid UTF-8 is received
|
||||
* from a terminal. After generating the character, ELinks then
|
||||
|
Loading…
Reference in New Issue
Block a user