[client] Fix rendering of nodes containing empty strings

This commit is contained in:
Joscha 2020-02-28 19:35:42 +00:00
parent 041f117df8
commit d58f1e4fef

View file

@ -268,7 +268,11 @@ renderNode focused node =
decorateFlags (nodeFlags node) $
decorateFocus focused $
decorateExpand (not $ OMap.null $ nodeChildren node) $
padRight Max $ txtWrap $ nodeText node
padRight Max $ txtWrap text
where
text
| T.null $ nodeText node = " "
| otherwise = nodeText node
nodeToTree :: (Ord n, Show n) => UiState n -> Path -> Node -> Maybe [WidgetTree n] -> WidgetTree n
nodeToTree s path node maybeChildren = case uiEditor s of