(summary: &str)
| 36 | |
| 37 | #[must_use] |
| 38 | pub fn format_compact_summary(summary: &str) -> String { |
| 39 | let without_analysis = strip_tag_block(summary, "analysis"); |
| 40 | let formatted = if let Some(content) = extract_tag_block(&without_analysis, "summary") { |
| 41 | without_analysis.replace( |
| 42 | &format!("<summary>{content}</summary>"), |
| 43 | &format!("Summary:\n{}", content.trim()), |
| 44 | ) |
| 45 | } else { |
| 46 | without_analysis |
| 47 | }; |
| 48 | |
| 49 | collapse_blank_lines(&formatted).trim().to_string() |
| 50 | } |
| 51 | |
| 52 | #[must_use] |
| 53 | pub fn get_compact_continuation_message( |
no test coverage detected