Fix text overhang example in docs

This commit is contained in:
mkorje 2025-05-01 13:37:40 +10:00
parent 3e6691a93b
commit d45fd9124d
No known key found for this signature in database

View File

@ -348,15 +348,17 @@ pub struct TextElem {
/// This can make justification visually more pleasing.
///
/// ```example
/// #set page(width: 220pt)
///
/// #set par(justify: true)
/// This justified text has a hyphen in
/// the paragraph's first line. Hanging
/// the paragraph's second line. Hanging
/// the hyphen slightly into the margin
/// results in a clearer paragraph edge.
///
/// #set text(overhang: false)
/// This justified text has a hyphen in
/// the paragraph's first line. Hanging
/// the paragraph's second line. Hanging
/// the hyphen slightly into the margin
/// results in a clearer paragraph edge.
/// ```