aboutsummaryrefslogtreecommitdiff
path: root/lib/pp_control.ml
diff options
context:
space:
mode:
authorgregoire2003-03-26 14:02:21 +0000
committergregoire2003-03-26 14:02:21 +0000
commit8e13e6233ee4fc002f42290f1b7ae64a6e627162 (patch)
tree4cb6a8d9e9457579b5c011680eda287be12f47c2 /lib/pp_control.ml
parentc491bb6d0cb8295af9e49cf2643ebc48de3629d8 (diff)
Ajout de Set Print Width
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3790 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/pp_control.ml')
-rw-r--r--lib/pp_control.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pp_control.ml b/lib/pp_control.ml
index 44f3514588..caa985c185 100644
--- a/lib/pp_control.ml
+++ b/lib/pp_control.ml
@@ -96,7 +96,13 @@ let _ = set_gp deep_ft deep_gp
(* For parametrization through vernacular *)
let default = Format.pp_get_max_boxes !std_ft ()
+let default_margin = Format.pp_get_margin !std_ft ()
+
let get_depth_boxes () = Some (Format.pp_get_max_boxes !std_ft ())
let set_depth_boxes v =
Format.pp_set_max_boxes !std_ft (match v with None -> default | Some v -> v)
+let get_margin () = Some (Format.pp_get_margin !std_ft ())
+let set_margin v =
+ Format.pp_set_margin !std_ft (match v with None -> default_margin | Some v -> v)
+