diff options
| author | Max <max@mkor.je> | 2025-05-20 16:20:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 16:20:40 +0000 |
| commit | e90c2f74ef63d92fc160ba5ba04b780c1a64fe75 (patch) | |
| tree | 2695ac25048b1e37c9a4647961b39794782798bf /crates/typst-library/src | |
| parent | 300a782451082e5d7bdf894f0cc756261076008b (diff) | |
Fix text overhang example in docs (#6223)
Diffstat (limited to 'crates/typst-library/src')
| -rw-r--r-- | crates/typst-library/src/text/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/typst-library/src/text/mod.rs b/crates/typst-library/src/text/mod.rs index 462d1606..23edc9e9 100644 --- a/crates/typst-library/src/text/mod.rs +++ b/crates/typst-library/src/text/mod.rs @@ -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. /// ``` |
