multiline tootlip in table not supported

0 votes
asked Feb 11, 2023 in Bug by ggmimi (240 points)
Hello,

Multiple lines separated by \n in tooltip (ex : assiociated to link) are not supported

I tried to replace \n by <br> in tooltip text, but <br> is displayed in full text and not as a line break.

ex :

@startuml
title
<#lightblue,#red>|=  Step  |=  Date  |=  Name  |=  Status  |=  Link  |
<#lightgreen>|  1.1  |  [[multiline.svg{multi line tooltip\ntest} multiline label test]] | plantuml news |<#Navy><color:OrangeRed><b> Unknown  | [[https://plantuml.com/news{single line tooltip test} tooltip test]] |
end title
@enduml

1 Answer

0 votes
answered Feb 11, 2023 by albert (3,520 points)

When I double the backslash to:

@startuml
title
<#lightblue,#red>|=  Step  |=  Date  |=  Name  |=  Status  |=  Link  |
<#lightgreen>|  1.1  |  [[multiline.svg{multi line tooltip\\ntest} multiline label test]] | plantuml news |<#Navy><color:OrangeRed><b> Unknown  | [[https://plantuml.com/news{single line tooltip test} tooltip test]] |
end title
@enduml

I get the correct results and hovering over gives a tooltip.

So maybe this is the solution for your problem

commented Feb 11, 2023 by anonymous
Thank you so much Albert !

You saved my working day !

Just need to escape \, it was si simple, you still had to think about it !
...