Skip to content

Commit

Permalink
Pull out variable
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Jan 14, 2025
1 parent 6287828 commit 2faf732
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ocamlutil/pretty.ml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ let breakString init s =
j := i
end
done;
let text = Text (String.sub s 0 !j) in
if !r = Nil then
Text (String.sub s 0 !j)
text
else
Concat(Text (String.sub s 0 !j), Concat(Line, !r))
Concat(text, Concat(Line, !r))


let nil = Nil
Expand Down

0 comments on commit 2faf732

Please sign in to comment.