On Tue, 17 Nov 2026 23:46:11 GMT, Kevin Rushforth <[email protected]> wrote:
>> Andy Goryachev has updated the pull request with a new target base due to a
>> merge or a rebase. The incremental webrev excludes the unrelated changes
>> brought in by the merge/rebase. The pull request contains eight additional
>> commits since the last revision:
>>
>> - reworked html export for CodeArea
>> - Merge branch 'master' into 8396861.codearea.font
>> - getter
>> - Merge branch 'master' into 8396861.codearea.font
>> - diff
>> - cleanup
>> - html too
>> - code area font
>
> modules/jfx.incubator.richtext/src/main/java/com/sun/jfx/incubator/scene/control/richtext/HtmlStyledOutput.java
> line 399:
>
>> 397: wr.write("<body>\n");
>> 398: if (font != null) {
>> 399: wr.write("<pre>");
>
> HTML strips the first newline after a `<pre>`, so this will get rid of an
> intentional newline at the beginning of the content.
>
> Suggestion:
>
> wr.write("<pre>\n");
I am not sure this is a valid finding - `"<pre>"` actually adds a newline in MS
Word since the newline is inside `<pre>`.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2369#discussion_r4617958030