Spacing in Notes on sequences

0 votes
asked Nov 28, 2023 in Question / help by ml31st (120 points)
edited Nov 28, 2023 by ml31st

Hi,

when I render this here locally I get the
table with wide spaces:

https://i.ibb.co/RDd65HK/plantuml-layout-bug.png

    @startuml
    participant "A" as cc1
    participant "B" as cc2
    cc1 -> cc2  : Text
    note left
    | aa | aa aa aa |
    | bb | bb bb bb |
    | cc| cc cc cc |
    end note
    legend
    <size:8> Rendered with Plantuml Version %version() </size>
    end legend
    @enduml


If I render the image remotely, everything seems right:

Different Java environments but same Plantuml version.

Does anyone have any ideas?

Thank you very much.

ps. the pictures somehow get lost in the post, I'll try to add them later

1 Answer

0 votes
answered Nov 28, 2023 by Serge Wenger Work (15,620 points)

Hello,

It can be dot version. To check:

@startuml
version
@enduml

commented Nov 28, 2023 by ml31st (120 points)
no, same Plantuml version without dot.
commented Nov 28, 2023 by ml31st (120 points)
different fonts are installed, but even if I use a defined font for NoteFontName
large spaces to the right of the texts in the table.

So, to the right of the texts in the table is a free area of similar width.

Thank you very much for the answers so far.

Is there a possibility to upload an image here in this forum?
commented Nov 28, 2023 by Serge Wenger Work (15,620 points)

Yes, but not so simple:

1) Copy the image in a storage available with an url (like https://imgbb.com/)

2) Insert image link (first button left)

Logo Wikipedia

commented Nov 28, 2023 by ml31st (120 points)
I cannot upload an image via URL, the preview shows me a red cross at the link.

I have simply written the link at the top of the question, you just have to click on it.
commented Nov 28, 2023 by Serge Wenger Work (15,620 points)

Sorry, I don't have any other ideas. It also works in my local environment. On which system did you run plantuml.jar?

The rignt link is https://i.ibb.co/RDd65HK/plantuml-layout-bug.png

commented Nov 28, 2023 by ml31st (120 points)
both macos and linux
commented Nov 28, 2023 by Serge Wenger Work (15,620 points)

Last idea, Add skinparam TabSize 1

@startuml
skinparam TabSize 1

...

commented Nov 28, 2023 by ml31st (120 points)
Hi,
unfortunately this does not work.

I have now built a workaround and am making a
<code> output and generate the text dynamically via Python PrettyTable.

Many thanks for the help
...