-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bold font after \n in relationships text #62
Comments
Not sure if related to #61 |
When the given example is reduced to a Short, Self Contained, Correct example: @startuml
(A) -> (B): "one\ntwo"
(C) -> (D): "<b>one\ntwo"
(E) -> (F) : "<color:#707070>one\ntwo"
@enduml One can see that the difference is not the font weight (i.e. "bold") but the font color (i.e. "black"). As far as I am aware, the font style reverting to default after a newline/linebreak is expected behaviour. (I could be wrong, that is for @arnaudroques to decide). The solution for the second line also being colored @startuml
(A) -> (B) : "<color:#707070>one\n<color:#707070>two"
@enduml Or using a stereotype: @startuml
skinparam arrowFontColor<<gray>> #707070
(A) -> (B)<<gray>> : "one\ntwo"
@enduml Regarding
Although the source of the issue is the same, the behavior described in #61 is a bug in the downstream project. I have created an issue to address the problem in C4-PlantUML in that repo: plantuml-stdlib/C4-PlantUML#255 |
You are right, that's the point. The font style is reverting to default after a newline. Now changing this would have too many impacts so I'm afraid we have to live with it. |
Thanks folks for the explanation, the workaround, (and the link for self contained.. :) ). May I propose a function call to disable this behavior? Like |
BTW CC @simonbrowndotje because I think the workaround should be implemented in the exporter of structurizr. |
Given
Output is:
Note that
two
is darker thanone
.The text was updated successfully, but these errors were encountered: