File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ let run (`Setup ()) (`File file) (`Section section) =
46
46
| Block b ->
47
47
if not (Mdx.Block. skip b) then (
48
48
Log. debug (fun l -> l " pp: %a" Mdx.Block. dump b);
49
- let pp_lines = Fmt. (list ~sep: (unit " \n " ) string ) in
49
+ let pp_lines = Fmt. (list ~sep: (any " \n " ) string ) in
50
50
let contents = Mdx.Block. executable_contents ~syntax: Normal b in
51
51
match b.value with
52
52
| Toplevel _ -> Fmt. pr " %a\n " pp_lines contents
Original file line number Diff line number Diff line change 22
22
( ocaml
23
23
( >= 4 .08.0) )
24
24
ocamlfind
25
- ( fmt ( >= 0 .8.5 ) )
25
+ ( fmt ( >= 0 .8.7 ) )
26
26
( cppo :build )
27
27
( csexp
28
28
( >= 1 .3.2) )
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ let pp_lines syntax t =
128
128
fun ppf -> Fmt. fmt " %*s%s" ppf (t.loc.loc_start.pos_cnum + 2 ) " "
129
129
| _ -> Fmt. string
130
130
in
131
- Fmt. (list ~sep: (unit " \n " ) pp)
131
+ Fmt. (list ~sep: (any " \n " ) pp)
132
132
133
133
let lstrip string =
134
134
let hpad = Misc. hpad_of_lines [ string ] in
@@ -160,11 +160,11 @@ let pp_footer ?syntax ppf t =
160
160
161
161
let pp_legacy_labels ppf = function
162
162
| [] -> ()
163
- | l -> Fmt. pf ppf " %a" Fmt. (list ~sep: (unit " ," ) Label. pp) l
163
+ | l -> Fmt. pf ppf " %a" Fmt. (list ~sep: (any " ," ) Label. pp) l
164
164
165
165
let pp_labels ppf = function
166
166
| [] -> ()
167
- | l -> Fmt. pf ppf " <!-- $MDX %a -->\n " Fmt. (list ~sep: (unit " ," ) Label. pp) l
167
+ | l -> Fmt. pf ppf " <!-- $MDX %a -->\n " Fmt. (list ~sep: (any " ," ) Label. pp) l
168
168
169
169
let pp_header ?syntax ppf t =
170
170
match syntax with
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ let pp_line ?syntax ppf (l : line) =
30
30
| _ -> Fmt. pf ppf " %s\n " s)
31
31
32
32
let pp ?syntax ppf t =
33
- Fmt. pf ppf " %a\n " Fmt. (list ~sep: (unit " \n " ) (pp_line ?syntax)) t
33
+ Fmt. pf ppf " %a\n " Fmt. (list ~sep: (any " \n " ) (pp_line ?syntax)) t
34
34
35
35
let to_string = Fmt. to_to_string pp
36
36
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ let pp_pad ppf = function
29
29
| 0 -> ()
30
30
| i -> Fmt. string ppf (String. v ~len: i (fun _ -> ' ' ))
31
31
32
- let pp_lines pp = Fmt. (list ~sep: (unit " \n " ) pp)
32
+ let pp_lines pp = Fmt. (list ~sep: (any " \n " ) pp)
33
33
34
34
let dump_string ppf s = Fmt. pf ppf " %S" s
35
35
@@ -55,4 +55,4 @@ let pp_position ppf lexbuf =
55
55
56
56
(* TODO: better error reporting *)
57
57
let err lexbuf fmt =
58
- Fmt. kstrf (fun str -> Fmt. failwith " %a: %s" pp_position lexbuf str) fmt
58
+ Fmt. kstr (fun str -> Fmt. failwith " %a: %s" pp_position lexbuf str) fmt
Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ let eval_test ?block ?root c cmd =
127
127
128
128
let err_eval ~cmd lines =
129
129
Fmt. epr " Got an error while evaluating:\n ---\n %a\n ---\n %a\n %!"
130
- Fmt. (list ~sep: (unit " \n " ) string )
130
+ Fmt. (list ~sep: (any " \n " ) string )
131
131
cmd
132
- Fmt. (list ~sep: (unit " \n " ) string )
132
+ Fmt. (list ~sep: (any " \n " ) string )
133
133
lines;
134
134
exit 1
135
135
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ depends: [
21
21
"dune" {>= "2.7"}
22
22
"ocaml" {>= "4.08.0"}
23
23
"ocamlfind"
24
- "fmt" {>= "0.8.5 "}
24
+ "fmt" {>= "0.8.7 "}
25
25
"cppo" {build}
26
26
"csexp" {>= "1.3.2"}
27
27
"astring"
You can’t perform that action at this time.
0 commit comments