()
| 81 | }; |
| 82 | |
| 83 | const flushCurrentEntry = (): void => { |
| 84 | if (currentEntry.length === 0 || !currentType) return; |
| 85 | |
| 86 | // Remove trailing empty lines from the entry |
| 87 | while (currentEntry.length > 0 && !currentEntry[currentEntry.length - 1]?.trim()) { |
| 88 | currentEntry.pop(); |
| 89 | } |
| 90 | |
| 91 | if (currentEntry.length === 0) return; |
| 92 | |
| 93 | const entry = createEntry(currentEntry.join('\n'), currentType); |
| 94 | addEntry(entry); |
| 95 | |
| 96 | currentEntry = []; |
| 97 | currentType = null; |
| 98 | }; |
| 99 | |
| 100 | const processDetailsContent = (): void => { |
| 101 | for (const line of detailsContent) { |
no test coverage detected