how to escape ; in mindmaps

0 votes
asked Apr 20, 2020 in Question / help by sivaram
The following mindmap, throws syntax error at f1(); . I tried escaping the semicolon with ~ but it is shown as ~; in the node.

@startmindmap

* Class Templates
**: template <typename T>
class cname{
void f1();
...
};;

@endmindmap

1 Answer

0 votes
answered Apr 20, 2020 by The-Lu (63,920 points)

Hello,
(Adapted from a comment on https://forum.plantuml.net/11089)

As first workaround, you can use the unicode notation:

@startmindmap

* Class Templates
**:template <typename T>
class cname{
void f1()<U+003B>
...
};;

@endmindmap

[http://www.plantuml.com/plantuml/umla/SoWkIImgoStCIybDBE3Yqb9mpaaiBbO8ISqjo4aiIItcqjAoAe5o56nAAWjIyn9pKnL2xBYImGgJGTnghhByp1I5D4CDJPjGRGC3OoSxBZqzFQvQQsikBYw7rBmKg0K0]

See also:
Special characters on https://plantuml.com/en/creole

...