summaryrefslogtreecommitdiff
path: root/lib/unilbrk/u32-possible-linebreaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unilbrk/u32-possible-linebreaks.c')
-rw-r--r--lib/unilbrk/u32-possible-linebreaks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unilbrk/u32-possible-linebreaks.c b/lib/unilbrk/u32-possible-linebreaks.c
index 969fd64ee3..3ae28e314f 100644
--- a/lib/unilbrk/u32-possible-linebreaks.c
+++ b/lib/unilbrk/u32-possible-linebreaks.c
@@ -43,7 +43,7 @@ u32_possible_linebreaks_loop (const uint32_t *s, size_t n, const char *encoding,
{
if (n > 0)
{
- int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL);
+ int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID1 : LBP_AL);
const uint32_t *s_end = s + n;
int prev_prop = LBP_BK; /* line break property of last character */
int last_prop = LBP_BK; /* line break property of last non-space character */
@@ -81,7 +81,7 @@ u32_possible_linebreaks_loop (const uint32_t *s, size_t n, const char *encoding,
break;
case LBP_CB:
/* This is arbitrary. */
- prop = LBP_ID;
+ prop = LBP_ID1;
break;
case LBP_SA:
/* We don't handle complex scripts yet.