WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] OCamlDoc: Properly removes all whitespace and *'s from

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] OCamlDoc: Properly removes all whitespace and *'s from the beginning of lines in ocamldoc comments.
From: Rob Hoes <rob.hoes@xxxxxxxxxx>
Date: Thu, 1 Jul 2010 14:21:02 +0100
Delivery-date: Thu, 01 Jul 2010 06:21:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Rob Hoes <rob.hoes@xxxxxxxxxx>
OCamlDoc: Properly removes all whitespace and *'s from the beginning of lines 
in ocamldoc comments.

Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>

diff -r 0065f015b7ce ocaml/doc/odoc_json.ml
--- a/ocaml/doc/odoc_json.ml
+++ b/ocaml/doc/odoc_json.ml
@@ -87,7 +87,7 @@
                        else
                                Buffer.add_char res str.[i]
                | 1 -> 
-                       if str.[i] != '\n' && str.[i] != ' ' & str.[i] != '*' 
then begin
+                       if not (List.mem str.[i] ['\n'; '\t'; ' '; '*']) then 
begin
                                phase := 0;
                                Buffer.add_char res str.[i]
                        end

Attachment: doc-remove-stars
Description: Text document

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] OCamlDoc: Properly removes all whitespace and *'s from the beginning of lines in ocamldoc comments., Rob Hoes <=