mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Also making \r break lines in labels
This commit is contained in:
parent
4037a68ccc
commit
eb614c32b3
@ -303,9 +303,9 @@ uint16_t lv_txt_get_next_line(const char * txt, const lv_font_t * font,
|
|||||||
|
|
||||||
i += advance;
|
i += advance;
|
||||||
|
|
||||||
if(txt[0] == '\n') break;
|
if(txt[0] == '\n' || txt[0] == '\r') break;
|
||||||
|
|
||||||
if(txt[i] == '\n'){
|
if(txt[i] == '\n' || txt[i] == '\r'){
|
||||||
i++; /* Include the following newline in the current line */
|
i++; /* Include the following newline in the current line */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user