There are many cases where OCamlformat will introduce trailing spaces before wrapped attributes:
;;
(a_______________________________________________________________________________
[@attr]) ()
;;
(a_______________________________________, b____________________________________)
[@attr]
;;
{ a____________________________________ = b___________________________________ }
[@attr]