fix(劇場渲染): room read 的括號吃掉動作格
roomScript() 用 roomTag() 組括號,room read 卻自己拼「(情緒)」——同一份逐字稿 用兩支路徑渲染,動作格在 room read 這邊會整格消失。改成也走 roomTag()。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -1861,8 +1861,8 @@ commands.room = ({ flags, positional }) => {
|
||||
// (`roomPost` 已在寫入端處理,這是給舊逐字稿的第二道)。
|
||||
for (const row of rows) {
|
||||
const arrow = row.to && row.to !== pl.ROOM_ALL && row.to !== row.speaker ? ` → ${row.to}` : "";
|
||||
const emotion = pl.injectSafeLine(row.emotion);
|
||||
lines.push(`[${row.ts}] ${row.speaker}${emotion ? `(${emotion})` : ""}${arrow}:${pl.injectSafeLine(row.text)}`);
|
||||
// 括號用 `roomTag()` 組,跟 `roomScript()` 同一支——自己拼 `(情緒)` 會把動作格吐掉。
|
||||
lines.push(`[${row.ts}] ${row.speaker}${pl.roomTag(row)}${arrow}:${pl.injectSafeLine(row.text)}`);
|
||||
}
|
||||
emit({ room, meta, messages: rows }, flags.json, lines);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user