From ce52387e89db6dbd5678a72a454e0d833cf7b754 Mon Sep 17 00:00:00 2001 From: Pierre Courtieu Date: Thu, 3 May 2018 15:41:04 +0200 Subject: Fix #7415. Printing Width was not applied to error messages. --- vernac/topfmt.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vernac') diff --git a/vernac/topfmt.ml b/vernac/topfmt.ml index 055f6676e..1d720330a 100644 --- a/vernac/topfmt.ml +++ b/vernac/topfmt.ml @@ -89,12 +89,14 @@ let set_margin v = Format.pp_set_margin Format.str_formatter v; Format.pp_set_margin !std_ft v; Format.pp_set_margin !deep_ft v; + Format.pp_set_margin !err_ft v; (* Heuristic, based on usage: the column on the right of max_indent column is 20% of width, capped to 30 characters *) let m = max (64 * v / 100) (v-30) in Format.pp_set_max_indent Format.str_formatter m; Format.pp_set_max_indent !std_ft m; - Format.pp_set_max_indent !deep_ft m + Format.pp_set_max_indent !deep_ft m; + Format.pp_set_max_indent !err_ft m (** Console display of feedback *) -- cgit v1.2.3