(context: &mut String, block: &str)
| 188 | } |
| 189 | |
| 190 | pub(super) fn append_context_block(context: &mut String, block: &str) { |
| 191 | if !context.is_empty() && !context.ends_with('\n') { |
| 192 | context.push('\n'); |
| 193 | } |
| 194 | context.push_str(block); |
| 195 | if !block.ends_with('\n') { |
| 196 | context.push('\n'); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | pub(super) fn append_context_recovery_hint(context: &mut String) { |
| 201 | if !context.is_empty() && !context.ends_with('\n') { |
no test coverage detected