mirror of
https://github.com/lvgl/lvgl.git
synced 2026-08-17 18:22:42 +08:00
fix(txt): append ')]}' to LV_TXT_BREAK_CHARS (#3675)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
co-authored by
pengyiqiang
parent
3812f6cc85
commit
f9eb73bfae
@@ -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"
|
||||
|
||||
+1
-1
@@ -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*/
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user