mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-30 23:51:54 +08:00
fix(txt): append ')]}' to LV_TXT_BREAK_CHARS (#3675)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -654,7 +654,7 @@ menu "LVGL configuration"
|
|||||||
|
|
||||||
config LV_TXT_BREAK_CHARS
|
config LV_TXT_BREAK_CHARS
|
||||||
string "Can break (wrap) texts on these chars"
|
string "Can break (wrap) texts on these chars"
|
||||||
default " ,.;:-_"
|
default " ,.;:-_)]}"
|
||||||
|
|
||||||
config LV_TXT_LINE_BREAK_LONG_LEN
|
config LV_TXT_LINE_BREAK_LONG_LEN
|
||||||
int "Line break long length"
|
int "Line break long length"
|
||||||
|
|||||||
+1
-1
@@ -407,7 +407,7 @@
|
|||||||
#define LV_TXT_ENC LV_TXT_ENC_UTF8
|
#define LV_TXT_ENC LV_TXT_ENC_UTF8
|
||||||
|
|
||||||
/*Can break (wrap) texts on these chars*/
|
/*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"
|
/*If a word is at least this long, will break wherever "prettiest"
|
||||||
*To disable, set to a value <= 0*/
|
*To disable, set to a value <= 0*/
|
||||||
|
|||||||
@@ -1271,7 +1271,7 @@
|
|||||||
#ifdef CONFIG_LV_TXT_BREAK_CHARS
|
#ifdef CONFIG_LV_TXT_BREAK_CHARS
|
||||||
#define LV_TXT_BREAK_CHARS CONFIG_LV_TXT_BREAK_CHARS
|
#define LV_TXT_BREAK_CHARS CONFIG_LV_TXT_BREAK_CHARS
|
||||||
#else
|
#else
|
||||||
#define LV_TXT_BREAK_CHARS " ,.;:-_"
|
#define LV_TXT_BREAK_CHARS " ,.;:-_)]}"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user