We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98fb22b commit bd042daCopy full SHA for bd042da
src/ocamlutil/pretty.ml
@@ -79,19 +79,19 @@ let breakString s =
79
let j = ref (String.length s) in
80
for i = String.length s - 1 downto 0 do
81
if String.unsafe_get s i = '\n' then begin
82
- let text = (String.sub s (i + 1) (!j - i - 1)) in
+ let text = Text (String.sub s (i + 1) (!j - i - 1)) in
83
(if !r = Nil then
84
- r := Concat(Line,Text text)
+ r := Concat(Line, text)
85
else
86
- r := Concat(Line, Concat(Text text, !r)));
+ r := Concat(Line, Concat(text, !r)));
87
j := i
88
end
89
done;
90
let text = String.sub s 0 !j in
91
if !r = Nil then
92
Text text
93
94
- Concat(Text text,!r)
+ Concat(Text text, !r)
95
96
97
let nil = Nil
0 commit comments