Private
Public Access
fix(chronology): skip **Status:**/**Track ID:**/**Track:**/**>** metadata lines in summary extraction
This commit is contained in:
@@ -79,9 +79,16 @@ def extract_summary(folder_path: Path) -> str:
|
||||
continue
|
||||
for line in text.splitlines():
|
||||
stripped = line.strip()
|
||||
if not stripped or stripped.startswith("#"):
|
||||
if not stripped:
|
||||
continue
|
||||
return _truncate_to_25_words(_first_sentence(stripped))
|
||||
if stripped.startswith("#"):
|
||||
continue
|
||||
if stripped.startswith(">"):
|
||||
continue
|
||||
bare = stripped.lstrip(">").strip()
|
||||
if bare.startswith("**Status:**") or bare.startswith("**Track ID:**") or bare.startswith("**Track:**"):
|
||||
continue
|
||||
return _truncate_to_25_words(_first_sentence(bare))
|
||||
return "Imported from archive (no spec)"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user