1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 12:21:57 +03:00

Split rendering of Fixed terms in Patches.

This commit is contained in:
Rob Rix 2015-12-10 17:26:16 -05:00
parent 7ca6481cec
commit 00826a1a82

View File

@ -129,6 +129,7 @@ termToLines (Info range _ categories :< syntax) source = (rows syntax, range)
where
rows (Leaf _) = reverse $ foldl adjoin2Lines [] $ Line . (:[]) <$> elements
rows (Indexed i) = rewrapLineContentsInUl <$> childLines i
rows (Fixed f) = rewrapLineContentsInUl <$> childLines f
rewrapLineContentsInUl (Line elements) = Line [ Ul (classify categories) elements ]
rewrapLineContentsInUl EmptyLine = EmptyLine