diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-02-10 15:37:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-10 14:37:19 +0000 |
| commit | 89e71acecd4a3a06943d0bd4443fc80a9b8f41e4 (patch) | |
| tree | 7a7f01e6aaf10d85edc06162e8aab700e76647b4 /crates/typst-library/src/model | |
| parent | ee47cb846924235be6eae968a7853ea7860ccc51 (diff) | |
Respect `par` constructor arguments (#5842)
Diffstat (limited to 'crates/typst-library/src/model')
| -rw-r--r-- | crates/typst-library/src/model/link.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-library/src/model/link.rs b/crates/typst-library/src/model/link.rs index 24b746b7..ea85aa94 100644 --- a/crates/typst-library/src/model/link.rs +++ b/crates/typst-library/src/model/link.rs @@ -11,7 +11,7 @@ use crate::foundations::{ use crate::html::{attr, tag, HtmlElem}; use crate::introspection::Location; use crate::layout::Position; -use crate::text::{Hyphenate, TextElem}; +use crate::text::TextElem; /// Links to a URL or a location in the document. /// @@ -138,7 +138,7 @@ impl Show for Packed<LinkElem> { impl ShowSet for Packed<LinkElem> { fn show_set(&self, _: StyleChain) -> Styles { let mut out = Styles::new(); - out.set(TextElem::set_hyphenate(Hyphenate(Smart::Custom(false)))); + out.set(TextElem::set_hyphenate(Smart::Custom(false))); out } } |
