1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Unicode TR14: Always return a hard break for line breaking code points

Prior to this commit a soft break would be returned at the end of text,
even if the text was terminated by a newline.
This commit is contained in:
attila 2024-12-11 17:00:49 +01:00 committed by Attila Szarvas
parent b163bc7a1f
commit e31fb368b6

View file

@ -70,7 +70,11 @@ public:
// LB3
if (isEOT)
{
if (contains ({ LineBreakType::cr, LineBreakType::lf, LineBreakType::nl }, prev))
emit (TextBreakType::hard);
else
emit (TextBreakType::soft);
break;
}