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:
parent
b163bc7a1f
commit
e31fb368b6
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue