> Well, you can try setting Always wrap for Try Resources in the formatting 
> options - Language : Java, Category: Wrapping.

Thanks, that fixed it.

> The underlying problem is actually in javac, and afaik fixed in JDK 20.

Just curious, how does javac lead to this problem?

-----Original Message-----
From: Neil C Smith <neilcsm...@apache.org> 
Sent: Thursday, October 6, 2022 8:03 AM
To: Tellis, Wyatt <wyatt.tel...@ucsf.edu>
Cc: users@netbeans.apache.org
Subject: Re: Formatting issue

On Thu, 6 Oct 2022 at 15:49, Tellis, Wyatt
<wyatt.tel...@ucsf.edu.invalid> wrote:
> This never happened with NB 12 and prior versions.  I’ve tried toggling 
> Multiline Alignment, but it doesn’t do anything.  Is there another setting 
> that controls this behavior?

Well, you can try setting Always wrap for Try Resources in the
formatting options - Language : Java, Category: Wrapping.

While fixing the additional leading space I tried to fix the line
break removal too, but although I know where it's triggered I couldn't
find a workaround.  The underlying problem is actually in javac, and
afaik fixed in JDK 20.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://urldefense.com/v3/__https://cwiki.apache.org/confluence/display/NETBEANS/Mailing*lists__;Kw!!LQC6Cpwp!oYXBdhehC4Gd1XxOrMkphYeGBAEO9eoIdTD1bUTwEAfUtiFqCDQdj3LK-ynw7ESpHGGa-Bq_PHfMMAOzSCyg8RAJ$
  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to