pub(super) mod endnotes;
pub(super) mod footnotes;
use super::TypesetState;
use crate::model::footnote::Footnote;
use crate::model::table::Table;
use crate::renderer::pagination::FootnoteSource;
pub(super) fn register_unqueued_table_cells(
st: &mut TypesetState,
table: &Table,
para_idx: usize,
ctrl_idx: usize,
mut register: impl FnMut(&mut TypesetState, &Footnote, FootnoteSource),
) {
if !st.has_fragment_queued_table_footnotes(para_idx, ctrl_idx) {
for (cell_path, fn_ctrl) in crate::renderer::pagination::table_cell_footnotes(table) {
register(
st,
fn_ctrl,
FootnoteSource::table_cell_path(para_idx, ctrl_idx, &cell_path),
);
}
}
}