mirror of
https://github.com/github/semantic.git
synced 2025-01-06 23:46:21 +03:00
Don’t elide empty rows.
This commit is contained in:
parent
963887a115
commit
bcc7d6d578
@ -244,10 +244,6 @@ maybeLast list = listToMaybe $ reverse list
|
||||
adjoin2 :: [Row] -> Row -> [Row]
|
||||
adjoin2 [] row = [row]
|
||||
|
||||
adjoin2 rows (Row EmptyLine EmptyLine) = rows
|
||||
|
||||
adjoin2 (Row EmptyLine EmptyLine : rows) row = adjoin2 rows row
|
||||
|
||||
adjoin2 rows (Row left' right') | Just _ <- openLine $ leftLines rows, Just _ <- openLine $ rightLines rows = zipWith Row lefts rights
|
||||
where lefts = adjoin2Lines (leftLines rows) left'
|
||||
rights = adjoin2Lines (rightLines rows) right'
|
||||
|
Loading…
Reference in New Issue
Block a user