jfeliu007 / goplantuml

PlantUML Class Diagram Generator for golang projects
MIT License
1.78k stars 167 forks source link

Some complicated constructs render inclorrectly #74

Closed jfeliu007 closed 4 years ago

jfeliu007 commented 4 years ago

After running the parser on the ast library I noticed that this is rendered

"ast.<font color=blue>func</font>(string, reflect.Value) bool" #.. "ast.FieldFilter"

from

func(string, reflect.Value) bool FieldFilter

The problem is that the rendering is incorrect since i takes

ast.<font color=blue>func</font>(string, reflect

as the namespace name when it has to be ast

I am thinking the problem is in the dot between reflect and Value. I am not sure how to fix this because I was expecting plantuml to do this correctly. But I would have to research plantuml to see what to do in these situations.

Justin-W commented 4 years ago

FYI: You could consider using Creole syntax for formatting instead of font tags, if nothing else works.

jfeliu007 commented 4 years ago

Let me try that. If anything Creole Syntax is better than this. I didn't know PlantUml supported it. Thanks for the tip.