Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Fixes #84.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Nov 23, 2023
1 parent 878cfe9 commit b52e105
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## (unreleased)

- C4PlantUMLExporter: Fixes #83 (C4Plantuml export renders url property in wrong format).
- Allow `plantuml.includes` property to be defined in individual views (#84).

## 1.17.0 (27th October 2023)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected void writeSkinParams(IndentingWriter writer) {
}

protected void writeIncludes(ModelView view, IndentingWriter writer) {
String[] includes = view.getViewSet().getConfiguration().getProperties().getOrDefault(PLANTUML_INCLUDES_PROPERTY, "").split(",");
String[] includes = getViewOrViewSetProperty(view, PLANTUML_INCLUDES_PROPERTY, "").split(",");
for (String include : includes) {
if (!StringUtils.isNullOrEmpty(include)) {
include = include.trim();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public void test_renderDiagramWithIncludes() {
SystemLandscapeView view = workspace.getViews().createSystemLandscapeView("key", "Description");
view.addDefaultElements();

view.getViewSet().getConfiguration().addProperty(C4PlantUMLExporter.PLANTUML_INCLUDES_PROPERTY, "styles.puml");
view.addProperty(C4PlantUMLExporter.PLANTUML_INCLUDES_PROPERTY, "styles.puml");

Diagram diagram = new C4PlantUMLExporter().export(view);
assertEquals("@startuml\n" +
Expand Down

0 comments on commit b52e105

Please sign in to comment.