mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-30 13:27:27 -06:00
#2964: document break_lines
This commit is contained in:
@@ -1884,6 +1884,8 @@ fn ptab_stop(align: PTabAlign, base: PTabBase, leader: TabLeader, width: f32, in
|
||||
TabStop { pos, align, leader }
|
||||
}
|
||||
|
||||
/// Break a paragraph into lines, measure each line, apply the paragraph's alignment and place
|
||||
/// the list label. Fills `pl.lines`, `pl.height` and the label's position.
|
||||
fn break_lines(pl: &mut ParaLayout, env: &ParaEnv, mark_style: u32, level: Option<&Level>) {
|
||||
// Narrow cells and float spans must retain their usable width.
|
||||
const MIN_LINE_WIDTH: f32 = 1.0;
|
||||
|
||||
Reference in New Issue
Block a user