From aa671a1a1c06a58944469764cf073ac835fcdf89 Mon Sep 17 00:00:00 2001 From: Jaro Date: Sat, 8 Apr 2023 04:05:07 +0200 Subject: [PATCH] Clarify comment about BiDi. --- src/Data/Text/ParagraphLayout/Internal/Plain.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/Text/ParagraphLayout/Internal/Plain.hs b/src/Data/Text/ParagraphLayout/Internal/Plain.hs index 0921141..b3bd203 100644 --- a/src/Data/Text/ParagraphLayout/Internal/Plain.hs +++ b/src/Data/Text/ParagraphLayout/Internal/Plain.hs @@ -84,7 +84,7 @@ layoutAndAlignLines maxWidth runs = frags canonicalOrder :: [WithSpan PF.ProtoFragment] -> [WithSpan PF.ProtoFragment] canonicalOrder [] = [] canonicalOrder pfs@((WithSpan _ headPF) : _) = case PF.direction headPF of - -- TODO: Update for bidi. + -- TODO: Use BiDi levels to control reversing. Just DirLTR -> pfs Just DirRTL -> reverse pfs Just DirTTB -> pfs -- 2.30.2