Error when using "-" as double arrow for styles

0 votes
asked Feb 22, 2022 in Bug by eduardomozart (360 points)

Hello,

Into the following diagram, using "-" into style name (lines 29-30, e.g. "LAN-A" and "LAN-B"), is throwing an error at PlantUML on-line, but it was working fine some weeks ago. I'm not sure, but I believe that the "-" isn't a valid character for PlantUML styles anymore.

@startuml
scale 1/3
skinparam defaultFontName Calibri
left to right direction

!include <office/Security/certificate>

!define VRTPuml https://raw.githubusercontent.com/eduardomozart/VRT-PlantUML/main/dist
!include VRTPuml/Servers/VRTTower_Server.puml
!include VRTPuml/Clients/VRTSmartphone.puml
!include VRTPuml/Clients/VRTLaptop.puml

hide stereotype

skinparam {
    ArrowColor Black
    DefaultTextAlignment center
    BackgroundColor White
    shadowing false
    RoundCorner 10
    dpi 300
}

skinparam rectangle {
    BackgroundColor none
    BorderColor transparent
    BorderColor<<LAN-A>> #Red
    BorderColor<<LAN-B>> #Blue
}

rectangle "<$VRTTower_Server{scale=0.51}>\n**ClearPass**" as CP
rectangle "<$VRTSmartphone{scale=0.81}>" as Smartphone
rectangle "<$VRTLaptop{scale=0.31}>" as Laptop

CP -[hidden]- Laptop
CP <--> "\nEAP Exchange" Laptop : "<$certificate>\nRADIUS"
CP <--> Smartphone : "<$certificate>\nHTTPS"
@enduml

commented Feb 23, 2022 by Martin (8,360 points)

Here's a minimalised version of your problem:

@startuml
skinparam rectangle {
    BorderColor<<LAN-A>> #Red
}
rectangle A
@enduml

(converting "LAN-A" to "LAN_A" works)

commented Feb 23, 2022 by The-Lu (64,340 points)

Hello all, (and PlantUML team)

Same issue with style:

Code Output
@startuml
<style>
.LAN-A {
  LineColor Red
}
</style>

rectangle A
rectangle LA <<LAN-A>>
@enduml
KO:
@startuml
<style>
.LAN_A {
  LineColor Red
}
</style>

rectangle A
rectangle LA <<LAN_A>>
@enduml
OK:

Regards.

commented Feb 24, 2022 by plantuml (295,000 points)
This should be fixed with last beta on the online server.

Could you test?

Thanks!
commented Feb 24, 2022 by eduardomozart (360 points)
Hello,

It seems to be working now!

Thank you!

1 Answer

0 votes
answered Mar 10, 2022 by The-Lu (64,340 points)

Hello all,

Just to make an answer...
With the new version V1.2022.2 (5 Mars, 2022), this is fixed.

Thanks for yours works,
Regards

...