Copy all format flags (not only precision) from actual output stream when calculating the maximal width

--HG--
branch : 3.2
extra : source : 6c39381d945f96f3478d92f766197eef5017c1ea