RFR: JDK-8314215 Trailing Spaces before Line Breaks Affect the Center Alignment of Text [v10]

John Hendrikx jhendrikx at openjdk.org
Wed Feb 7 23:50:59 UTC 2024


On Wed, 7 Feb 2024 23:31:43 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> > so I think that the 2nd line is incorrect.
> 
> interesting: I would think the second line is correct. Could you check what a browser does in this situation?

Tested with `pre-wrap` which I think is the closest match there is for browsers (and the setting we want to emulate), and it shows this:

![image](https://github.com/openjdk/jfx/assets/995917/ef0a16e4-3734-4862-93e4-816522fa6ff3)

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1236#issuecomment-1933127921


More information about the openjfx-dev mailing list