nwdiag ignores on "title" keyword in plantuml.1.2020.7

0 votes
asked Apr 24, 2020 in Bug by MineralUML (280 points)

The nwdiag mode ignores on "title" keyword in plantuml.1.2020.7, and fails to add the string to the image.

The following diagram script does not generate a title, but fails to do so gracefully (no error generated) and any variant/combination of the three "title" commands included results in the same generated diagram image as not having it at all:

title "My title"


title "My title"

nwdiag {

title "My title"

  network dmz {
      address = "210.x.x.x/24"

      web01 [address = "210.x.x.1"];
      web02 [address = "210.x.x.2"];
  network internal {
      address = "172.x.x.x/24";

      web01 [address = "172.x.x.1"];
      web02 [address = "172.x.x.2"];

Also, since this is my first post, I just wanted to thank the whole team of people that contributed to plantuml. Thanks for building this FOSS tool!

1 Answer

+1 vote
answered Apr 24, 2020 by plantuml (277,020 points)

Thanks for your support !

Actually, we are sometimes lazzy and we did not implement all feature in nwdiag until now.

Anyway, we've just fixed this in last beta http://beta.plantuml.net/plantuml.jar and you can now have :

header some header
footer some footer
title My title
nwdiag {
  network inet {
      web01 [shape = cloud]
The legend
end legend

We are also lazzy on tests, so please post here when you'll find issues :-)

commented Apr 24, 2020 by MineralUML (280 points)
Hi @plantuml, thank you for your answer.

I found https://forum.plantuml.net/8562/there-getting-started-guide-contributing-plantuml-source?show=8562#q8562 regarding the current source code, which directs users to https://github.com/plantuml/plantuml but commit 9077d971d71c5777f8d2d0a33da19fb7faef17ba  at https://github.com/plantuml/plantuml/commit/9077d971d71c5777f8d2d0a33da19fb7faef17ba is for version 1.2020.7 which is what I tried. Is there a developer branch or code elsewhere? It looks like the jar is hosted on sourceforge, so do you actually use SVN rather than git or is that just for (java) bin hosting?
commented Apr 24, 2020 by plantuml (277,020 points)
Actually, our real repository (SVN btw) is on an internal server.

Both sourceforge and github are only copy of this repository. We do a copy for each release. Note that you can contribute on github: we retrieve changes into our internal repository in that case.

The code of the beta is not published yet. We try to release often (that is, about once per month, at least). Maybe this week-end ?
commented Apr 24, 2020 by MineralUML (280 points)
@ plantuml , I see, thank you for clarifying the development process. I will look through the code next release cycle (1.2020.8) then, whenever it goes live.