fmt icon indicating copy to clipboard operation
fmt copied to clipboard

`Fmt_tty.setup_std_outputs` doesn't set the margins

Open Drup opened this issue 10 years ago • 6 comments

Not sure if that's intended.

Drup avatar Sep 09 '15 01:09 Drup

Unclear.

dbuenzli avatar Sep 09 '15 02:09 dbuenzli

http://caml.inria.fr/pub/docs/manual-ocaml/libref/Format.html#VALset_margin

Drup avatar Sep 09 '15 02:09 Drup

I meant Not sure if that's intended : unclear. For these reasons:

  1. If we assume pure text dump (âlâ cmdliner), then I would certainly like to set the margin if < 80 columns but not if greater because of basic typographic rules for readability.
  2. If we assume widgetgiligili, then a) width should be arbitrary b) it should be able to react to changes, which brings us to register formatters for change and I'm not sure this is the right place to do it.

dbuenzli avatar Sep 09 '15 02:09 dbuenzli

If we assume pure text dump

in a tty.

dbuenzli avatar Sep 09 '15 02:09 dbuenzli

What about providing the appropriate functions but not calling them automatically, then ?

Drup avatar Sep 09 '15 02:09 Drup

What about providing the appropriate functions but not calling them automatically, then ?

Yeah, but then I feel I have the moral obligation (le problème avec la morale c'est que c'est toujours la morale des autres) to also provide the reactive API.

dbuenzli avatar Sep 09 '15 02:09 dbuenzli