Skip to content

Commit

Permalink
feat(PatternFuncProcessor): add newline join for Array and List results
Browse files Browse the repository at this point in the history
Updated the PatternFuncProcessor to join Array and List results with newline characters for better readability.
  • Loading branch information
phodal committed Sep 20, 2024
1 parent a219ce4 commit 57ea7e6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ open class PatternFuncProcessor(open val myProject: Project, open val hole: Hobb
if (action.texts.isEmpty()) {
return when (lastResult) {
is Array<*> -> {
(lastResult as Array<String>)
(lastResult as Array<String>).joinToString("\n")
}

is List<*> -> {
(lastResult as List<String>).joinToString("\n")
}

else -> {
Expand Down

0 comments on commit 57ea7e6

Please sign in to comment.