Center disalignment when using "HorizontalAlignment center"

+1 vote
asked Mar 29 in Bug by eduardomozart (180 points)

Hello, I'm using the following code to generate a WBS diagram:

@startwbs

<style>
node {
    HorizontalAlignment center
    LineColor blue
    BackgroundColor white
    MinimumWidth 115
}

arrow {
    LineColor grey
}
</style>

* Técnicas de Escaneamento\nCibernético
** Open Scan
** Half Open Scan
*** Version\nDetection Scan
** Stealth Scans
*** SYN|ACK Scan
*** IDLE Scan
*** FIN, XMAS, NULL\nScans
*** ACK Scan
*** Window Scan
*** TCP\nFragmentation\nScan
** Sweep Scans
*** ICMP Echo\nScan
*** ICMP\nTimestamp &\nAddress Mask\nScan
*** TCP SYN Scan
** Miscellaneous Scans
*** FTP Bounce\nScan
*** UDP Scan
*** IP Protocol\nScan
*** RPC Scan
@endwbs

When using "HorizontalAlignment center", some items do not seems to be centered right. The "Miscellaneous Scans" appears to be right aligned and some items like "Window Scan", "RPC Scan" and others do not seems to be centered at all.

commented Mar 29 by The-Lu (44,040 points)
edited Apr 7 by The-Lu

Hello PlantUML team and all,

It seems a artefact regression form correction of:

Then compare, this:

and:

Thanks for your correction.
Regards.

1 Answer

0 votes
answered Apr 7 by danespin (140 points)
No, it's not related to the mentioned artefact.

The center bug in HorizontalAlignment is real, it puts the strings to the right instead.

You can test it with the example of section 17.10 of the latest PDF guide.

Here it is:

//www.plantuml.com/plantuml/png/TP91RzD048Nl-olU5QiA3YaI4WKLkFJGeeg2k73PU2VsgBipqUuO9o3-EsjSeL1K7soFvFU-pwEzBEQp9PQG_DvT53j6Ukj40-6dk_KXiFHOlt0tFlSisBWhpVn3nNny5xcNH6BewesoksQX3nerOnj7-ZD-7hYx5oe5crNhtllkliywIbW-wpK6zscPir36ULj11qvZ-ih11gpRrlroMTK-BaPpvztiY5UhzdNjF85c2lyHfe7jiScwfawXhRiRVD1f_jDsDGCZ-Tq9y0dPzkz-DZNZSzRf7yFpHznszVAqBXD9pLqyVzXvWol6csUkQL0qaN6Y0iRWlnDabc71nDq0nkJ5O8efin4yebO9euFLS0CRk21J6QELEPJ9ntZ4CFQ4mBxFFhccNj0TEXrpeJCmEY-WmpvonuPIdrPfDi1_4w49aOMMr7OqiCt96B2b-g8HlCDjh5PVRgwhNO7VHeBfKhJupGtb3CaVQsYf5kZUMCLTaeI7C_WR
commented Apr 7 by The-Lu (44,040 points)

Hello D.,

In fact `artefact ` is not a good word...
I was thinking more of `regression form correction of`, I just correcting the sentence...

And here is the image of your example:

If that can help PlantUML team for correction...
Regards.

commented 2 days ago by anonymous
Hello.

Reverting to release v1.2022.1 resolves the issue so the bug was likely inadvertently introduced whilst trying to fix issue #15441.

Hope that's helpful.
...