caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeremy Yallop <yallop@gmail.com>
To: Matthieu Dubuget <matthieu.dubuget@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] I never succeeded in using Format
Date: Thu, 6 Mar 2014 16:46:21 +0000	[thread overview]
Message-ID: <CAAxsn=FhnX9o8YyOEH16dEaVKNZXfxpf7gffPmZ15Ex+8A8PDg@mail.gmail.com> (raw)
In-Reply-To: <5318A3A8.8050402@gmail.com>

On 6 March 2014 16:34, Matthieu Dubuget <matthieu.dubuget@gmail.com> wrote:
> Why doesn't sprintf exhibit the same behaviour as printf?

The set_margin function only affects std_formatter:

   https://github.com/ocaml/ocaml/blob/8ba031a/stdlib/format.ml#L1027

You need to use pp_set_margin for other formatters.

Jeremy.

  reply	other threads:[~2014-03-06 16:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 16:34 Matthieu Dubuget
2014-03-06 16:46 ` Jeremy Yallop [this message]
2014-03-06 16:47 ` Benoit Vaugon
2014-03-06 17:02   ` Matthieu Dubuget
2014-03-06 17:06     ` David Sheets
2014-03-06 17:09       ` Matthieu Dubuget
2014-03-06 19:08         ` Martin Jambon
2014-03-07  7:20           ` Raphaël Proust
2014-03-10  0:47             ` oleg
2014-03-10 11:28               ` Bob Atkey
2014-03-11  9:32                 ` oleg
2014-03-14 10:21                   ` Francois Pottier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAxsn=FhnX9o8YyOEH16dEaVKNZXfxpf7gffPmZ15Ex+8A8PDg@mail.gmail.com' \
    --to=yallop@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=matthieu.dubuget@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).