Skip to content

Commit

Permalink
PolicyOps: add decideNewlinesOnlyBeforeToken
Browse files Browse the repository at this point in the history
All the other combinations are already present.
  • Loading branch information
kitbellew committed May 13, 2024
1 parent f7d3cd0 commit 302288c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ object PolicyOps {
fileLine: FileLine,
): Policy = new DecideNewlinesOnlyBeforeToken(close, Option(split))

def decideNewlinesOnlyBeforeToken(token: T)(implicit
fileLine: FileLine,
): Policy = new DecideNewlinesOnlyBeforeToken(token, None)

def decideNewlinesOnlyAfterClose(close: T)(implicit
fileLine: FileLine,
): Policy = decideNewlinesOnlyAfterClose(Split(Newline, 0))(close)
Expand Down

0 comments on commit 302288c

Please sign in to comment.