-
-
Notifications
You must be signed in to change notification settings - Fork 28
C4PlantUML exporter: Stereotypes shown #29
Comments
Removing the whole |
I think I spotted it:
Commenting and uncommenting |
It's the call to
You'll need to ask the C4-PlantUML team why this happens ... I suspect it's because you generally want the legend or the stereotypes, but not both, and not neither. |
Why not adding |
Anyways I can ask to confirm. |
I found this plantuml-stdlib/C4-PlantUML#37 which could be related. |
@simonbrowndotje they confirmed, I think structurizr should just add the |
Didn't test it yet but fix should look like: --- a/src/main/java/com/structurizr/export/plantuml/C4PlantUMLExporter.java
+++ b/src/main/java/com/structurizr/export/plantuml/C4PlantUMLExporter.java
@@ -165,10 +165,13 @@ public class C4PlantUMLExporter extends AbstractPlantUMLExporter {
@Override
protected void writeFooter(View view, IndentingWriter writer) {
+ writer.writeLine();
if (includeLegend(view)) {
- writer.writeLine();
writer.writeLine("SHOW_LEGEND()");
}
+ else {
+ writer.writeLine("HIDE_STEREOTYPE()");
+ }
super.writeFooter(view, writer);
} |
Given
the stereotypes are shown:
Commenting out the include does not change the behavior.
I couldn't isolate exactly what causes the stereotypes to show up.
I had to call
HIDE_STEREOTYPES()
in an external puml include in order to workaround this.The text was updated successfully, but these errors were encountered: