Fix BDLines getSpacing computation
parent
412c5460aa
commit
dc4e59f2a1
|
@ -844,7 +844,10 @@ getSpacings limit bridoc = preFilterLimit <$> rec bridoc
|
||||||
-- counterexample would be anything like Seq[Lit "foo", Lines].
|
-- counterexample would be anything like Seq[Lit "foo", Lines].
|
||||||
lSpss <- map filterAndLimit <$> rec `mapM` ls
|
lSpss <- map filterAndLimit <$> rec `mapM` ls
|
||||||
let
|
let
|
||||||
worbled = fmap reverse $ sequence $ reverse $ lSpss
|
worbled = sequence $ case lSpss of
|
||||||
|
[] -> []
|
||||||
|
[x] -> [x]
|
||||||
|
(x1:xR) -> x1 : map reverse xR
|
||||||
sumF lSps@(lSp1 : _) =
|
sumF lSps@(lSp1 : _) =
|
||||||
VerticalSpacing (_vs_sameLine lSp1)
|
VerticalSpacing (_vs_sameLine lSp1)
|
||||||
(spMakePar $ maxVs lSps)
|
(spMakePar $ maxVs lSps)
|
||||||
|
|
Loading…
Reference in New Issue