Skip to content

Commit

Permalink
Do not indent string template starting at first position of line
Browse files Browse the repository at this point in the history
Also, the `indent` rule should not change unexpected indentation characters inside a string template but leave this up to the `string-template-indent` rule. As a result the `indent` rule could be a bit simplified.

Closes #2350
  • Loading branch information
paul-dingemans committed Feb 13, 2024
1 parent 20b05e7 commit 73a3517
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ private class StringTemplateIndenter(
}
}
}
}
} //

private fun ASTNode.isRawStringLiteralFunctionBodyExpression() =
(prevLeaf()?.elementType != WHITE_SPACE || prevLeaf()?.text == " ") &&
Expand Down

0 comments on commit 73a3517

Please sign in to comment.