fix(council-archive): handle CRLF line endings in structural tag detection

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
ismeth
2026-03-01 19:37:47 +01:00
committed by YeonGyu-Kim
parent 6e57d060e1
commit 36e52d28b4
2 changed files with 49 additions and 1 deletions
@@ -45,7 +45,7 @@ function isStructuralOpen(text: string, idx: number): boolean {
function isStructuralClose(text: string, idx: number): boolean {
const afterIdx = idx + CLOSING_TAG.length
return afterIdx === text.length || text[afterIdx] === "\n"
return afterIdx === text.length || text[afterIdx] === "\n" || text[afterIdx] === "\r"
}
function findLastStructuralClose(text: string): number {