Skip to main content

render_section_divider_with_columns

Function render_section_divider_with_columns 

Source
pub fn render_section_divider_with_columns(
    title: &str,
    unicode: bool,
    width: Option<usize>,
    title_columns: usize,
    render: SectionRenderContext<'_>,
    tokens: SectionStyleTokens,
) -> String
Expand description

Renders a section divider while controlling the title start column.

title_columns describes how many columns the divider should consume before the title text starts. This lets shared ruled sections keep header lines flush-left while still aligning the title with indented body content.