admin管理员组文章数量:1026989
How to use a newline in a sequence diagram participant / actor name ? It would be particularly useful when you have a long name like this:
┌───┐ ┌─────────────────┐
│Bob│ │VeryLongAliceName│
└─┬─┘ └────────┬────────┘
│ hello │
│────────────────────>│
┌─┴─┐ ┌────────┴────────┐
│Bob│ │VeryLongAliceName│
└───┘ └─────────────────┘
I'd like to have it like this:
┌─────────┐
┌───┐ │VeryLong │
│Bob│ │AliceName│
└─┬─┘ └────┬────┘
│ hello │
│────────────────>│
┌─┴─┐ ┌────┴────┐
│Bob│ │VeryLong │
└───┘ │AliceName│
└─────────┘
How to use a newline in a sequence diagram participant / actor name ? It would be particularly useful when you have a long name like this:
┌───┐ ┌─────────────────┐
│Bob│ │VeryLongAliceName│
└─┬─┘ └────────┬────────┘
│ hello │
│────────────────────>│
┌─┴─┐ ┌────────┴────────┐
│Bob│ │VeryLongAliceName│
└───┘ └─────────────────┘
I'd like to have it like this:
┌─────────┐
┌───┐ │VeryLong │
│Bob│ │AliceName│
└─┬─┘ └────┬────┘
│ hello │
│────────────────>│
┌─┴─┐ ┌────┴────┐
│Bob│ │VeryLong │
└───┘ │AliceName│
└─────────┘
Share
Improve this question
edited Nov 18, 2024 at 7:28
Geert Bellekens
13.8k3 gold badges29 silver badges55 bronze badges
asked Nov 16, 2024 at 10:49
pochopsppochopsp
1,0531 gold badge10 silver badges24 bronze badges
1 Answer
Reset to default 2Just wrap your participant name in double quotes "
, then you can use the newline escape sequence \n
to break the name in two lines, like this:
@startuml
Bob -> "VeryLong\nAliceName": hello
@enduml
How to use a newline in a sequence diagram participant / actor name ? It would be particularly useful when you have a long name like this:
┌───┐ ┌─────────────────┐
│Bob│ │VeryLongAliceName│
└─┬─┘ └────────┬────────┘
│ hello │
│────────────────────>│
┌─┴─┐ ┌────────┴────────┐
│Bob│ │VeryLongAliceName│
└───┘ └─────────────────┘
I'd like to have it like this:
┌─────────┐
┌───┐ │VeryLong │
│Bob│ │AliceName│
└─┬─┘ └────┬────┘
│ hello │
│────────────────>│
┌─┴─┐ ┌────┴────┐
│Bob│ │VeryLong │
└───┘ │AliceName│
└─────────┘
How to use a newline in a sequence diagram participant / actor name ? It would be particularly useful when you have a long name like this:
┌───┐ ┌─────────────────┐
│Bob│ │VeryLongAliceName│
└─┬─┘ └────────┬────────┘
│ hello │
│────────────────────>│
┌─┴─┐ ┌────────┴────────┐
│Bob│ │VeryLongAliceName│
└───┘ └─────────────────┘
I'd like to have it like this:
┌─────────┐
┌───┐ │VeryLong │
│Bob│ │AliceName│
└─┬─┘ └────┬────┘
│ hello │
│────────────────>│
┌─┴─┐ ┌────┴────┐
│Bob│ │VeryLong │
└───┘ │AliceName│
└─────────┘
Share
Improve this question
edited Nov 18, 2024 at 7:28
Geert Bellekens
13.8k3 gold badges29 silver badges55 bronze badges
asked Nov 16, 2024 at 10:49
pochopsppochopsp
1,0531 gold badge10 silver badges24 bronze badges
1 Answer
Reset to default 2Just wrap your participant name in double quotes "
, then you can use the newline escape sequence \n
to break the name in two lines, like this:
@startuml
Bob -> "VeryLong\nAliceName": hello
@enduml
本文标签: Sequence Diagram participantactor name with newline on PlantUMLStack Overflow
版权声明:本文标题:Sequence Diagram participantactor name with newline on PlantUML - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745660504a2161860.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论