From 5b0b866099723cf2f1228f10e3df8b746bbe6f44 Mon Sep 17 00:00:00 2001 From: Andrew Voynov Date: Tue, 28 Jan 2025 04:01:46 +0300 Subject: [PATCH] docs(ratio): separated 2 paragraphs --- crates/typst-library/src/layout/ratio.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/typst-library/src/layout/ratio.rs b/crates/typst-library/src/layout/ratio.rs index 0fe7f8075..4bd58e305 100644 --- a/crates/typst-library/src/layout/ratio.rs +++ b/crates/typst-library/src/layout/ratio.rs @@ -8,11 +8,12 @@ use crate::foundations::{repr, ty, Repr}; /// A ratio of a whole. /// -/// Written as a number, followed by a percent sign. A common use case is -/// setting the width or height of a container (e.g., [block], [rect], etc.), -/// as it can be used as part of a [relative length]($relative) to represent -/// a certain percentage of the size of the surrounding container or of the -/// current page. For example: +/// Written as a number, followed by a percent sign. +/// +/// A common use case is setting the width or height of a container (e.g., +/// [block], [rect], etc.), as it can be used as part of a [relative +/// length]($relative) to represent a certain percentage of the size of the +/// surrounding container or of the current page. For example: /// /// ```example /// #block(width: 240pt, {