Order mismatch between Note and rectangle with embedded salt

+1 vote
asked Mar 10, 2020 in Bug by Serge Wenger Work (15,770 points)

The text is not at top in rectangle 

@startuml
rectangle r as "
Text as top

{{
salt
{{T
+ <&folder>Folder1
}
}
}}
"
note left of r
Text as top
{{
salt
{{T
+ <&folder>Folder1
}
}
}}
end note
@enduml

 http://www.plantuml.com/plantuml/png/SoWkIImgAStDuIfAJIv9p4lFILKeKaWiLb3Y2acjA06nIl8BkBYggxcA4tDAW7G8bxQ2ZLfQVavAQf6T6vWovAe5mLek9Qwy_99KXPpKj1A5_3I58cGpY3GYDIz50MG8bmEG1NGN0000

commented Jun 3, 2020 by The-Lu (74,900 points)

Hello S. and Plantuml team,

According to new test, and an answers to /4307:

here is another example where the order is not taken into account (see hdr 1, 2, 3):

rectangle r [
__header__
== hdr 1 ==
{{
file f1
}}
== end 1 ==

...
]


[Click to see on PlantUML server]


I that can help,
Regards,
Th.

1 Answer

0 votes
answered Jun 3, 2020 by The-Lu (74,900 points)

Hello S.

For a workaround, on v1.2020.10/.11 a dummy line (.., --, == or __) below the text is necessary to achieve the expected result; see an answer on Question /4307.

rectangle r as "
Text as top
..
{{
salt
{{T
+ <&folder>Folder1
}
}
}}
"

If that can help,
Regards,
Th.

commented Sep 4, 2020 by Serge Wenger Work (15,770 points)

Hello Plantuml team,

Could you please take a look at this bug? This is really a problem in my case (and I think the same  /4307)

Thanks for your support

commented Sep 18, 2020 by plantuml (295,800 points)
This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if you find other issues !

Thanks.
commented Sep 18, 2020 by Serge Wenger Work (15,770 points)

Thanks. It is OK yes

commented Sep 18, 2020 by The-Lu (74,900 points)

Sorry. It is OK yes with salt...
But it is always KO no on component...

See above example:

rectangle r [
__header__
== hdr 1 ==
{{
file f1
}}
== end 1 ==
...
]

With the beta version, "Header 1" (hdr 1) seems to be always on the wrong place.

Thank for your support,

Regards,
Th.

commented Sep 22, 2020 by plantuml (295,800 points)
Thanks for the report: this is fixed in last beta http://beta.plantuml.net/plantuml.jar and on the online server
...