fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
764 stars 190 forks source link

left out lhs in SynMeasure.Divide should not be restored as SynMeasure.One #2926

Closed dawedawe closed 1 year ago

dawedawe commented 1 year ago

Issue created from fantomas-online

Code

234</kg>

Result

234<1 / kg>

Problem description

If the original code left out the optional lhs in a SynMeasure.Divide, then the formatted code should not restore it as an explicit SynMeasure.One

Extra information

Options

Fantomas main branch at 2023-07-12T08:15:24Z - 41fe8d62f212d9b2ab786c2a5873f0980e12975e

Default Fantomas configuration

Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.