Skip to content

Commit

Permalink
Fix #92: Verify should work even when adding new lines (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brujo Benavides authored Apr 14, 2020
1 parent 6a856b2 commit 48f64d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rebar3_formatter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ insert_last_line(Formatted) ->
{ok, Re} = re:compile("[\n]+$"),
case re:run(Formatted, Re) of
{match, _} ->
re:replace(Formatted, Re, "\n");
re:replace(Formatted, Re, "\n", [{return, binary}]);
nomatch ->
<<Formatted/binary, "\n">>
end.
Expand Down

0 comments on commit 48f64d7

Please sign in to comment.