]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
OCamlDoc: Properly removes all whitespace and *'s from the beginning of lines in...
authorRob Hoes <rob.hoes@citrix.com>
Thu, 8 Jul 2010 11:56:35 +0000 (12:56 +0100)
committerRob Hoes <rob.hoes@citrix.com>
Thu, 8 Jul 2010 11:56:35 +0000 (12:56 +0100)
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
ocaml/doc/odoc_json.ml

index 9e5dec55d2f7d86f8cf893e4e6ad373d1aa77b2f..306cfff967ca0e2e36d9bdb943a5aece6a998729 100644 (file)
@@ -87,7 +87,7 @@ let remove_asterisks str =
                        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