From ecd2bca606c0533ec6426b03fc216df256d43c3f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 24 Feb 2022 19:15:49 +0100 Subject: List above & below --- src/library/list.rs | 97 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 58 insertions(+), 39 deletions(-) (limited to 'src/library') diff --git a/src/library/list.rs b/src/library/list.rs index b757e4b2..baa8a0c9 100644 --- a/src/library/list.rs +++ b/src/library/list.rs @@ -33,9 +33,13 @@ impl ListNode { /// The spacing between the list items of a non-wide list. pub const SPACING: Linear = Linear::zero(); /// The indentation of each item's label. - pub const LABEL_INDENT: Linear = Relative::new(0.0).into(); + pub const INDENT: Linear = Relative::new(0.0).into(); /// The space between the label and the body of each item. pub const BODY_INDENT: Linear = Relative::new(0.5).into(); + /// The extra padding above the list. + pub const ABOVE: Length = Length::zero(); + /// The extra padding below the list. + pub const BELOW: Length = Length::zero(); fn construct(_: &mut Context, args: &mut Args) -> TypResult