use crate::{ buffer::{ fragment_buffer::{FragmentSpan, FragmentTree}, Fragment, StringBuffer, }, fragment::CellText, util::parser, Merge, Settings, }; pub use cell::{Cell, CellGrid}; pub use contacts::Contacts; pub use endorse::Endorse; use itertools::Itertools; use sauron::{ html, html::attributes::{class, id}, html::*, svg::{attributes::*, *}, Node, }; pub use span::Span; use std::{ collections::BTreeMap, fmt, ops::{Deref, DerefMut}, }; use unicode_width::UnicodeWidthStr; mod cell; mod contacts; mod endorse; mod span; /// The simplest buffer. /// This is maps which char belong to which cell skipping the whitespaces #[derive(Debug, Default, Clone)] pub struct CellBuffer { map: BTreeMap, /// class,