| 1 | export function appendTurnActionCopyText(current: string, next: string): string { |
| 2 | if (next.trim() === "") return current; |
| 3 | if (current.trim() === "") return next; |
| 4 | if (current.endsWith("\n") || next.startsWith("\n")) return current + next; |
| 5 | return `${current}\n\n${next}`; |
| 6 | } |
| 7 |