foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Formatter does not handle params_first correctly when only one param

Open funderbrker opened this issue 10 months ago • 1 comments

Component

Forge

Have you ensured that all of these are up to date?

  • [X] Foundry
  • [X] Foundryup

What version of Foundry are you on?

No response

What command(s) is the bug in?

No response

Operating System

None

Describe the bug

When there is only one parameter and the formatter needs to wrap a header line it does not follow the definition of 'params_first'. Instead it wraps the modifiers first. This creates discontinuity throughout the code where some headers wrap arguments and some wrap modifiers.

funderbrker avatar Apr 19 '24 04:04 funderbrker

could you please provide a code example?

mattsse avatar Apr 22 '24 09:04 mattsse

Hi @funderbrker, a minimal reproduction example would be appreciated

zerosnacks avatar Jul 15 '24 12:07 zerosnacks