added a space after the tag in word alignment to work around a graphviz bug shown with Chinese characters

This commit is contained in:
aarne
2015-07-16 08:36:14 +00:00
parent 6717481bfe
commit eb8714fd77

View File

@@ -396,7 +396,7 @@ graphvizAlignment pgf langs exp =
renderList ii [] _ = empty
renderList ii [l] [] = struct ii <> text "[label = \"" <> fields l <> text "\"] ;"
fields cs = hsep (intersperse (char '|') [tbrackets (tag id) <> text w | (id,ws) <- cs, w <- ws])
fields cs = hsep (intersperse (char '|') [tbrackets (tag id) <> text (' ':w) | (id,ws) <- cs, w <- ws])