fix: output CREATE text immediately instead of accumulating in group
This commit is contained in:
1 parent
444d7e592b
commit
061086e844
1 file changed
+4
-2
@@ -384,8 +384,10 @@ export async function assembleService(
|
||||
if (who) {
|
||||
if (who !== groupWho || headerHtml) flushGroup();
|
||||
if (headerHtml) html += headerHtml + '\n';
|
||||
groupWho = who;
|
||||
groupTexts.push(fmt);
|
||||
const br = opts.newLine ? '<br>' : '';
|
||||
const whoLabel = `<span class="speaker-label">${who}:</span> `;
|
||||
html += `${br}${whoLabel}<p>${fmt}</p>`;
|
||||
if (whoRaw !== undefined) whoLast = who;
|
||||
} else {
|
||||
flushGroup();
|
||||
const br = opts.newLine ? '<br>' : '';
|
||||
|
||||
Reference in new issue
Block a user