On Wed, 18 Nov 2026 18:12:08 GMT, Andy Goryachev <[email protected]> wrote:

>> Fixes exporting of the `CodeArea` font to RTF and HTML.
>> 
>> Only the font family and size gets exported.  The font weight is not, mainly 
>> for simplicity (the custom models can be better), but also because there is 
>> no public API to get the font weight from the `Font` class.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Andy Goryachev has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   inline style

Yes, the first empty line does get lost in MS Outlook and Chrome, but not in MS 
Word.
Looks like different applications seem to work differently depending on whether 
the first empty line contains whitespace - Chrome eats the whole thing, while 
Outlook and MS Word paste the empty line with the whitespace included.

I think this behavior is acceptable mostly because I would rather not 
overcomplicate the basic exporter too much.  As long as the text gets pasted, I 
think we are fine.

@Siedlerchr what do you think?

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

PR Comment: https://git.openjdk.org/jfx/pull/2369#issuecomment-6989007656

Reply via email to