Alias detection in WBS is not working in the combination "as" and <<style>>

0 votes
asked Nov 1, 2024 in Bug by jens.fudickar (400 points)

In WBS

The combination of an alias defined with "as" is not working with <<styles>>

The "bracket" alias is working

Working:

@startwbs
<style>
.foo {
  LineColor #00FF00;
}
.customer {
  BackgroundColor orangered
}
</style>
* Test
** A topic
***[#blue]   "common" as c1
***(c2) "common2" <<customer>>
** "Another topic" as t2
t2 -> c1 <<foo>>
t2 ..> c2 #blue
@endwbs

https://www.plantuml.com/plantuml/png/DOynJyCm48Nt-nLFwGAM2C4hLjI2r8cH3J6upb4g4X-oBq88yTyvqcQpdh_xdjwsQYpwTQWKgdwFt5Fx9e8V0fvEcHzbb89Dr-ttNNTFlzIckQfCN1Ra8QQFOv4v3sTGIin7BZmO6MulGeTdhahEOGULprEoftlP7CQPNm4qIQP9SeDOaUx-_wwIlrvZto24jRCtcKEpowBlNCwovKuzgSTDRmB3RO2H5hIj9HvB5Mqv3xRp3m00

Broken:

@startwbs
<style>
.foo {
  LineColor #00FF00;
}
.customer {
  BackgroundColor orangered
}
</style>
* Test
** A topic
***[#blue]   "common" as c1
*** "common2" <<customer>> as c2
** "Another topic" as t2
t2 -> c1 <<foo>>
t2 ..> c2 #blue
@endwbs

http://www.plantuml.com/plantuml/png/DOz1IyGm48Nlyok6xYrWZBaQmgx2dZnw4m_PTBOMsumaKqJ4_swQRc_3UzzxZpaM2Lc-BmLSaP-9FEWhC_u2uikOw9adpdWmvdmsvX7-GCUb2C-K6_8KukUGUKdz1d8EQQ1CVINT_QrGuIiL0QNmXC9VOwodUZjSfeNU4R6BFC-SEWm5uyFgxPBjqBbzp_i6M5ZzKsBveBpLjQHO48jtlbRKq9NP-rNGkYeMsnWSAVNrqty0

1 Answer

0 votes
answered Mar 12 by dickmaley (4,120 points)

This uses "as" and works.

image

@startwbs
<style>
.foo {
  LineColor #00FF00;
}
.customer {
  BackgroundColor orangered;
}
</style>
* Test
** A topic
***[#blue] "common" as c1
***[#blue] "common2" as c2
** "Another topic" as t2
t2 -> c1 <<foo>>
t2 ..> c2 #blue
@endwbs

...