The second two lines of your example smell like LoD violations. It's not a formatting problem, it's a structural problem.
Sometimes you have to use libraries that are badly designed.
When that happens they're usually badly formatted too.
Indeed, but this bad formatting should not "spill over" to your own code if possible.