From fcd84d309dcf1bec1b92e53c69e68f30d2f687d0 Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Sat, 21 Mar 2020 06:43:44 -0700 Subject: [PATCH] Router: don't block select breaks in interpolate --- .../shared/src/main/scala/org/scalafmt/internal/Router.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scalafmt-core/shared/src/main/scala/org/scalafmt/internal/Router.scala b/scalafmt-core/shared/src/main/scala/org/scalafmt/internal/Router.scala index 6bac07fd7a..1ef4b976fc 100644 --- a/scalafmt-core/shared/src/main/scala/org/scalafmt/internal/Router.scala +++ b/scalafmt-core/shared/src/main/scala/org/scalafmt/internal/Router.scala @@ -1119,8 +1119,7 @@ class Router(formatOps: FormatOps) { case FormatToken(_, _: T.Dot, _) if style.newlines.sourceIgnored && rightOwner.is[Term.Select] && findTreeWithParent(rightOwner) { - case _: Type.Select | _: Term.Interpolate => Some(true) - case _: Importer | _: Pkg => Some(true) + case _: Type.Select | _: Importer | _: Pkg => Some(true) case _: Term.Select | SplitCallIntoParts(_, _) => None case _ => Some(false) }.isDefined =>