pub fn append_content(existing: &str, append: &str) -> String {
let mut combined = existing.to_string();
if !combined.is_empty() && !combined.ends_with('\n') {
combined.push('\n');
}
combined.push_str(append);
combined
}
pub fn prepend_content(existing: &str, prepend: &str) -> String {
format!("{}{}", prepend, existing)
}