summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-09 14:48:23 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-09 14:48:23 +0200
commit903f440b28e2c5840c700fe0b00db19238737c31 (patch)
tree884e10cb80408a5f5d01eb16c5eb734a0c18891c /library
parent58ca0e8db5f20848927e0dcb629fc478919081b6 (diff)
Rename `cramp` to `cramped`
Diffstat (limited to 'library')
-rw-r--r--library/src/math/style.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/src/math/style.rs b/library/src/math/style.rs
index 05ff64dc..b6549ee9 100644
--- a/library/src/math/style.rs
+++ b/library/src/math/style.rs
@@ -170,11 +170,11 @@ pub fn display(
/// and superscripts do.
#[named]
#[default(false)]
- cramp: bool,
+ cramped: bool,
) -> Content {
MathStyleElem::new(body)
.with_size(Some(MathSize::Display))
- .with_cramp(Some(cramp))
+ .with_cramped(Some(cramped))
.pack()
}
@@ -198,11 +198,11 @@ pub fn inline(
/// and superscripts do.
#[named]
#[default(false)]
- cramp: bool,
+ cramped: bool,
) -> Content {
MathStyleElem::new(body)
.with_size(Some(MathSize::Text))
- .with_cramp(Some(cramp))
+ .with_cramped(Some(cramped))
.pack()
}
@@ -225,11 +225,11 @@ pub fn script(
/// and superscripts do.
#[named]
#[default(true)]
- cramp: bool,
+ cramped: bool,
) -> Content {
MathStyleElem::new(body)
.with_size(Some(MathSize::Script))
- .with_cramp(Some(cramp))
+ .with_cramped(Some(cramped))
.pack()
}
@@ -253,11 +253,11 @@ pub fn sscript(
/// and superscripts do.
#[named]
#[default(true)]
- cramp: bool,
+ cramped: bool,
) -> Content {
MathStyleElem::new(body)
.with_size(Some(MathSize::ScriptScript))
- .with_cramp(Some(cramp))
+ .with_cramped(Some(cramped))
.pack()
}
@@ -284,7 +284,7 @@ pub struct MathStyleElem {
pub size: Option<MathSize>,
/// Whether to limit height of exponents
- pub cramp: Option<bool>,
+ pub cramped: Option<bool>,
}
impl LayoutMath for MathStyleElem {
@@ -303,7 +303,7 @@ impl LayoutMath for MathStyleElem {
if let Some(size) = self.size(StyleChain::default()) {
style = style.with_size(size);
}
- if let Some(cramped) = self.cramp(StyleChain::default()) {
+ if let Some(cramped) = self.cramped(StyleChain::default()) {
style = style.with_cramped(cramped);
}
ctx.style(style);