diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-10 23:23:50 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-10 23:36:36 +0200 |
| commit | 34fa8df044f1491069c9ae69f1c1e73d635c8955 (patch) | |
| tree | 30b9144690f55f0343a1fdbfcac6c9238c617077 /src/eval/raw.rs | |
| parent | 29eb13ca6214461a4b0deb63d589cd39ad6d41c2 (diff) | |
Move language-related properties from `par` to `text`
Closes #67
Diffstat (limited to 'src/eval/raw.rs')
| -rw-r--r-- | src/eval/raw.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/raw.rs b/src/eval/raw.rs index b0f46fc9..a83c363f 100644 --- a/src/eval/raw.rs +++ b/src/eval/raw.rs @@ -6,7 +6,7 @@ use super::{Fold, Resolve, Smart, StyleChain, Value}; use crate::geom::{ Align, Em, Get, Length, Numeric, Paint, Relative, Spec, SpecAxis, Stroke, }; -use crate::library::text::{ParNode, TextNode}; +use crate::library::text::TextNode; /// The unresolved alignment representation. #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] @@ -23,7 +23,7 @@ impl Resolve for RawAlign { type Output = Align; fn resolve(self, styles: StyleChain) -> Self::Output { - let dir = styles.get(ParNode::DIR); + let dir = styles.get(TextNode::DIR); match self { Self::Start => dir.start().into(), Self::End => dir.end().into(), |
