#[derive(Debug, Default)]
pub struct TextBlock<'a> {
text: Vec<&'a str>,
}
impl<'a> TextBlock<'a> {
pub fn new() -> Self {
Self::default()
}
pub fn add_line(&mut self, line: &'a str) {
self.text.push(line);
}
pub fn to_string(&self) -> String {
self.text.join("\n")
}
}