Skip to content

Commit 0de3797

Browse files
authored
Merge pull request #1651 from felixmulder/topic/message-fixes
Fix line splitting when point is first col
2 parents 01ae7dd + 85fbd19 commit 0de3797

File tree

3 files changed

+226
-229
lines changed

3 files changed

+226
-229
lines changed

src/dotty/tools/dotc/core/Decorators.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ object Decorators {
179179

180180
/** Formatter that adds syntax highlighting to all interpolated values */
181181
def hl(args: Any*)(implicit ctx: Context): String =
182-
new SyntaxFormatter(sc).assemble(args)
182+
new SyntaxFormatter(sc).assemble(args).stripMargin
183183
}
184184
}
185185

0 commit comments

Comments
 (0)