Skip to content

Commit

Permalink
fix: Re-add .txt diagram extension with fulibTools
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Feb 22, 2024
1 parent e77abee commit 976164d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/fulib/scenarios/tool/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class Config
this.diagramHandlers.put(".svg", "import(org.fulib.FulibTools).objectDiagrams().dumpSVG(%s, %s)");
this.diagramHandlers.put(".png", "import(org.fulib.FulibTools).objectDiagrams().dumpPng(%s, %s)");
this.diagramHandlers.put(".yaml", "import(org.fulib.FulibTools).objectDiagrams().dumpYaml(%s, %s)");
this.diagramHandlers.put(".txt", "import(org.fulib.FulibTools).objectDiagrams().dumpToString(%s, %s)");
}

private boolean generateTables;
Expand Down
2 changes: 1 addition & 1 deletion src/test/invalid_scenarios/lang/Diagrams.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ There is the Object foo.
<!-- ^^^^^^^^^^^^^^^
error: unsupported diagram file name extension 'foo.gif' [diagram.filename.extension.unsupported]
^^^^^^^^^^^^^^^
note: extension must be one of [.png, .svg, .yaml] [diagram.filename.extension.hint]
note: extension must be one of [.png, .svg, .txt, .yaml] [diagram.filename.extension.hint]
-->

0 comments on commit 976164d

Please sign in to comment.