From 9bb873b422b3726ebc258be710f1f6bf097b7908 Mon Sep 17 00:00:00 2001 From: Jaro Date: Wed, 12 Apr 2023 08:50:18 +0200 Subject: [PATCH] Fix documentation: references to local names. --- src/Data/Text/ParagraphLayout/Internal/Plain.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Data/Text/ParagraphLayout/Internal/Plain.hs b/src/Data/Text/ParagraphLayout/Internal/Plain.hs index 07df1fc..4c3df15 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Plain.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Plain.hs @@ -96,7 +96,7 @@ layoutLines maxWidth runs = case nonEmpty rest of -- TODO: Allow a run across multiple spans (e.g. if they only differ by colour). -- | Position all the given horizontal fragments on the same line, --- using `originY` as its top edge, and return the bottom edge for continuation. +-- using @originY@ as its top edge, and return the bottom edge for continuation. -- -- Glyphs will be aligned by their ascent line, similar to the behaviour of -- @vertical-align: top@ in CSS. @@ -112,7 +112,7 @@ positionLineH originY pfs = (nextY, frags) originX = paragraphOriginX -- | Position the given horizontal fragment on a line, --- using `originY` as its top edge and `originX` as its left edge, +-- using @originY@ as its top edge and @originX@ as its left edge, -- returning the X coordinate of its right edge for continuation. positionFragmentH :: Int32 -> Int32 -> WithSpan PF.ProtoFragment -> (Int32, WithSpan Fragment) -- 2.30.2