From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id B8077BB83 for ; Sat, 8 Jul 2006 21:38:01 +0200 (CEST) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k68Jc0B1030526 for ; Sat, 8 Jul 2006 21:38:01 +0200 Received: by nz-out-0102.google.com with SMTP id x3so1297920nzd for ; Sat, 08 Jul 2006 12:38:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SVhI5ftJaZJlfzKfkOHhVLYunIiG353DAmWg8UayqmruEQL4NS+kYf3lvgJ8zb7845Y3unGsgP4iRfPiHMSXkND4bXkzr2vbTE7OyolxblBZn79IhPEUAwnzZlT2lGSEeSR9Np0TDy3vwDk0YwvXXiU4umQesjl8UM25HFWeypU= Received: by 10.36.134.3 with SMTP id h3mr3846368nzd; Sat, 08 Jul 2006 12:38:00 -0700 (PDT) Received: by 10.36.101.10 with HTTP; Sat, 8 Jul 2006 12:38:00 -0700 (PDT) Message-ID: Date: Sun, 9 Jul 2006 07:38:00 +1200 From: "Jonathan Roewen" To: OCaml Subject: [Caml-list] Format & breaking MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 44B00998.001 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 44B00998.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; semantics:01 caml-list:01 behaviour:01 div:97 div:97 module:03 module:03 structural:04 seem:07 i'm:08 basically:09 example:10 content:89 content:89 frustrating:10 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP autolearn=disabled version=3.0.3 Hi, I have a small question about format module, and pretty-printing XHTML. Basically, I want to print something like:

....

....

// when content fits on a single line..

// when content doesn't fit on a single line... ....

but I can't get it to generate that. I was reading about the structural hovboxes, but the behaviour it describes doesn't seem to work -- at least with xhtml tags. For example, the above would be printed as:

....

....

// when content fits on a single line..

// when content doesn't fit on a single line... ....

which is frustrating. Or else I'm just misunderstanding the semantics of the Format module, which wouldn't surprise me ;-) Jonathan