Skip to content

Commit

Permalink
Merge pull request xbmc#25693 from CastagnaIT/fix_line_break
Browse files Browse the repository at this point in the history
[GUITextLayout] Removed custom chinese chars line break
  • Loading branch information
CastagnaIT authored Sep 5, 2024
2 parents 2247607 + 7921595 commit b798693
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/guilib/GUITextLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ class CGUITextLayout
inline bool CanWrapAtLetter(character_t letter) const XBMC_FORCE_INLINE
{
character_t ch = letter & 0xffff;
return ch == L' ' || (ch >=0x4e00 && ch <= 0x9fff);
//! @todo: unicode spaces are not handled, to check also all other GUI parts
return ch == L' ';
};
static void AppendToUTF32(const std::string &utf8, character_t colStyle, vecText &utf32);
static void AppendToUTF32(const std::wstring &utf16, character_t colStyle, vecText &utf32);
Expand Down

0 comments on commit b798693

Please sign in to comment.