[Pkg-ocaml-maint-commits] [SCM] camlmix packaging branch, master, updated. debian/1.3.0-2-4-gc7442db
Stephane Glondu
steph at glondu.net
Wed Nov 2 06:21:09 UTC 2011
The following commit has been merged in the master branch:
commit 878f525a9399d847e770f74239eb854a636e6405
Author: Stephane Glondu <steph at glondu.net>
Date: Wed Nov 2 07:14:59 2011 +0100
Remove trailing whitespaces
diff --git a/debian/camlmix.mkd b/debian/camlmix.mkd
index af7111c..684f1e2 100644
--- a/debian/camlmix.mkd
+++ b/debian/camlmix.mkd
@@ -1,5 +1,5 @@
% CAMLMIX(1) camlmix User Manual
-% Sylvain Le Gall
+% Sylvain Le Gall
% December 2, 2010
# NAME
@@ -31,7 +31,7 @@ of type string that will printed like the rest of the text:
The document blocks are printed by default on stdout using the "print"
-function.
+function.
For ## to be printed, ### should be used.
White space introduced by OCaml can be controlled
@@ -44,21 +44,21 @@ by ##. and .## symbols:
## Directives
-Blocks of code that start with the @ character (possibly preceded
+Blocks of code that start with the @ character (possibly preceded
by spaces) are directives for Camlmix.
The following directives are available:
include "somefile.mlx"; (* inserts a camlmix file *)
skip; (* ignores the next block of text *)
-e.g.:
+e.g.:
Hello ## @include "world.mlx"; skip .## ## let x = 123 ##!
## Conversion into a "render" function for dynamic rendering
-The -fun option, used in combination with -c and often -co produces
+The -fun option, used in combination with -c and often -co produces
an OCaml source file which provides a function with the following signature:
val render : ?print:(string -> unit) -> ANYTYPE -> unit
@@ -76,22 +76,22 @@ into some other container than stdout. It's default value is:
## Advanced usage
The OCaml program that is generated from the Camlmix files first defines
-a module called Camlmix. This module contains several variables that are
+a module called Camlmix. This module contains several variables that are
updated automatically and may be used explicitely by the user.
module Camlmix :
sig
val source : string ref
val line : int ref
- val char : int ref
- (* source, line and char refer to the location of the
+ val char : int ref
+ (* source, line and char refer to the location of the
first character of the current block in its source file
(source file, line number starting from 1, position in
the line starting from 1). They are updated
automatically at the beginning of each (code or text)
block. *)
- val printer : (string -> unit) ref
+ val printer : (string -> unit) ref
(* the function that prints text blocks. It is initialized
with the "print" function *)
@@ -102,7 +102,7 @@ updated automatically and may be used explicitely by the user.
OCaml block. *)
val print_if : bool -> unit
- (* print_if cond prints the next block of text only
+ (* print_if cond prints the next block of text only
if cond is true. It uses print_with. *)
end
@@ -131,12 +131,12 @@ updated automatically and may be used explicitely by the user.
-insert *ocaml code*
: insert this code first
--remix
+-remix
: try a conversion to the camlremix syntax
-version
: prints the version of Camlmix and exits
--help|\--help
+-help|\--help
: Display this list of options
--
camlmix packaging
More information about the Pkg-ocaml-maint-commits
mailing list