From 64c2c65c8063c178cd6d6c1ebdb1c13fb50ac610 Mon Sep 17 00:00:00 2001 From: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:55:13 +0300 Subject: [PATCH] Moved `auto` note up in caption separator docs (#2856) Previously `auto` note was only visible when example is shown. --- crates/typst/src/model/figure.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/typst/src/model/figure.rs b/crates/typst/src/model/figure.rs index e6ab7a2a2..1fffc5024 100644 --- a/crates/typst/src/model/figure.rs +++ b/crates/typst/src/model/figure.rs @@ -462,6 +462,9 @@ pub struct FigureCaption { /// The separator which will appear between the number and body. /// + /// If set to `{auto}`, the separator will be adapted to the current + /// [language]($text.lang) and [region]($text.region). + /// /// ```example /// #set figure.caption(separator: [ --- ]) /// @@ -470,9 +473,6 @@ pub struct FigureCaption { /// caption: [A rectangle], /// ) /// ``` - /// - /// If set to `{auto}`, the separator will be adapted to the current - /// [language]($text.lang) and [region]($text.region). pub separator: Smart, /// The caption's body.