From a42dd23609b364bf2e4375d8205c1623e4155522 Mon Sep 17 00:00:00 2001 From: Jaro Date: Mon, 29 May 2023 20:48:46 +0200 Subject: [PATCH] Add TODO for end-of-line whitespace. --- src/Data/Text/ParagraphLayout/Internal/Layout.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Data/Text/ParagraphLayout/Internal/Layout.hs b/src/Data/Text/ParagraphLayout/Internal/Layout.hs index df3cfe3..f808be0 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Layout.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Layout.hs @@ -194,6 +194,8 @@ layoutAndWrapRunsH maxWidth prevOpenBoxes runs = NonEmpty.head $ validProtoLines -- TODO: Consider optimising. -- We do not need to look for soft breaks further than the -- shortest hard break. + -- TODO: Untrimmed whitespace should be reset to paragraph BiDi level + -- per rule L1. splits = hardSplit runs :| softSplits runs -- | Construct a `PL.ProtoLine`, peeking at the text run on the following line -- 2.30.2