Use lines instead of List`1
Tvde1 opened this issue · comments
Tim van den Essen commented
Nikolai Emil Damm commented
I would love this too. This is one of the reasons why I still need to "fix" the generated UML Class Diagram :-)
Fajri commented
does anybody have any solution for this?
Bjarni S. Sigurðsson commented
I would love this feature also. Currently I'm patching the generated files with sed.
Examples:
find plantuml/ -name *.puml -exec sed -i -E 's/(.*) --> "(.*)<(.*)>" "List`1"/\1 o-- "0..*" \3/' {} \;
find plantuml/ -name *.puml -exec sed -i -E 's/(.*) o-> "(.*)<(.*)>" "List`1"/\1 o-- "0..*" \3/' {} \;
this will convert
Foo o-> "bars<Bar>" "List`1"
to
Foo o-- "0..*" Bar
Douglas Cavalcante commented
@bjarnisig thank you for share your solution, it works very well!
Adrien Hupond commented
This should also apply to all collections types, such as IList, ICollection, etc ...