Docs: note par.linebreaks in text.costs (#5434)

This commit is contained in:
Johann Birnick 2024-11-26 04:35:45 -08:00 committed by GitHub
parent 3d7284fc1b
commit 580e6811b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -495,7 +495,9 @@ pub struct TextElem {
/// ///
/// Hyphenation is generally avoided by placing the whole word on the next /// Hyphenation is generally avoided by placing the whole word on the next
/// line, so a higher hyphenation cost can result in awkward justification /// line, so a higher hyphenation cost can result in awkward justification
/// spacing. /// spacing. Note: Hyphenation costs will only be applied when the
/// [`linebreaks`]($par.linebreaks) are set to "optimized". (For example
/// by default implied by [`justify`]($par.justify).)
/// ///
/// Runts are avoided by placing more or fewer words on previous lines, so a /// Runts are avoided by placing more or fewer words on previous lines, so a
/// higher runt cost can result in more awkward in justification spacing. /// higher runt cost can result in more awkward in justification spacing.