%( %) in Format module seems to be broken #5121
Original bug ID: 5121
Comparing the Printf module vs. the Format module:
Printf.printf "111 %(%d%) 222%!" "%d" 3;;
111 3 222- : unit = ()
Format.printf "111 %(%d%) 222%!" "%d" 3;;
111 - : unit =
This seems to happen if %( %) encloses any format specifier.
The text was updated successfully, but these errors were encountered:
Comment author: @pierreweis
Thanks again for the bug report and the patch. I did a big cleaning in the code to get rid of the bug, as well as suppress irrelevant differences between Printf and Format codes for function mk_printf.
I will add your example to the test suite for the module Format.