Every single bug report on the topic has been closed by WhiteNoise and redirected to either this post or a much longer post (here)
I don’t know what prevents them from fixing this given the reformating code is basically theirs and you can see in the code at one point you have both the original format and the formatted code. You could easily have a second function handle the application of this formatted code selectively to actual properties and leave the unformatted code alone (comments). You could also ignore properties that have complicated yaml formats and just leave it unformatted. But they don’t.