Skip to content

Commit

Permalink
Indent
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Jan 14, 2025
1 parent 98fb22b commit bd042da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ocamlutil/pretty.ml
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@ let breakString s =
let j = ref (String.length s) in
for i = String.length s - 1 downto 0 do
if String.unsafe_get s i = '\n' then begin
let text = (String.sub s (i + 1) (!j - i - 1)) in
let text = Text (String.sub s (i + 1) (!j - i - 1)) in
(if !r = Nil then
r := Concat(Line,Text text)
r := Concat(Line, text)
else
r := Concat(Line, Concat(Text text, !r)));
r := Concat(Line, Concat(text, !r)));
j := i
end
done;
let text = String.sub s 0 !j in
if !r = Nil then
Text text
else
Concat(Text text,!r)
Concat(Text text, !r)


let nil = Nil
Expand Down

0 comments on commit bd042da

Please sign in to comment.