Fix text overhang example in docs (#6223)

This commit is contained in:
Max 2025-05-20 16:20:40 +00:00 committed by GitHub
parent 300a782451
commit e90c2f74ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -348,15 +348,17 @@ pub struct TextElem {
/// This can make justification visually more pleasing. /// This can make justification visually more pleasing.
/// ///
/// ```example /// ```example
/// #set page(width: 220pt)
///
/// #set par(justify: true) /// #set par(justify: true)
/// This justified text has a hyphen in /// 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 /// the hyphen slightly into the margin
/// results in a clearer paragraph edge. /// results in a clearer paragraph edge.
/// ///
/// #set text(overhang: false) /// #set text(overhang: false)
/// This justified text has a hyphen in /// 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 /// the hyphen slightly into the margin
/// results in a clearer paragraph edge. /// results in a clearer paragraph edge.
/// ``` /// ```