From f9eb73bfae6fdbda2e5b5475efe229359ab4e5d6 Mon Sep 17 00:00:00 2001 From: _VIFEXTech <1290176185@qq.com> Date: Fri, 9 Sep 2022 05:29:38 +0800 Subject: [PATCH] fix(txt): append ')]}' to LV_TXT_BREAK_CHARS (#3675) Co-authored-by: pengyiqiang --- Kconfig | 2 +- lv_conf_template.h | 2 +- src/lv_conf_internal.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Kconfig b/Kconfig index 334c4f1ae..8ae10e04f 100644 --- a/Kconfig +++ b/Kconfig @@ -654,7 +654,7 @@ menu "LVGL configuration" config LV_TXT_BREAK_CHARS string "Can break (wrap) texts on these chars" - default " ,.;:-_" + default " ,.;:-_)]}" config LV_TXT_LINE_BREAK_LONG_LEN int "Line break long length" diff --git a/lv_conf_template.h b/lv_conf_template.h index 98ab9340d..fef61a5e0 100644 --- a/lv_conf_template.h +++ b/lv_conf_template.h @@ -407,7 +407,7 @@ #define LV_TXT_ENC LV_TXT_ENC_UTF8 /*Can break (wrap) texts on these chars*/ -#define LV_TXT_BREAK_CHARS " ,.;:-_" +#define LV_TXT_BREAK_CHARS " ,.;:-_)]}" /*If a word is at least this long, will break wherever "prettiest" *To disable, set to a value <= 0*/ diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index 4eb9d114f..921b79cba 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -1271,7 +1271,7 @@ #ifdef CONFIG_LV_TXT_BREAK_CHARS #define LV_TXT_BREAK_CHARS CONFIG_LV_TXT_BREAK_CHARS #else - #define LV_TXT_BREAK_CHARS " ,.;:-_" + #define LV_TXT_BREAK_CHARS " ,.;:-_)]}" #endif #endif