how should I escape double underscores?

0 votes
asked Jun 25, 2014 in To be sorted by anonymous

I would like a component name that begins and ends with two underscore characters, for example:  __init__

It appears that double underscore causes a mid height dot to be rendered or underlines the word if enclosed in single quotes.

Here's a demo:

@startuml

package "test" {
    [alpha]
    [_bravo_]
    [__charlie__]
    ["__delta__"]
    [\__echo__]
    [\_\_foxtrot\_\_]
    [_\_golf__]
    [_\_hotel\__]
    [__ india __]
    ['__juliet__']
}

@enduml
 

Any ideas how to escape the double underscores?

Thank you

1 Answer

0 votes
answered Jun 25, 2014 by plantuml (295,000 points)
 
Best answer

It's caused by the creole parser. Rather than using escapes, we decide to disable some creole features in some situations like the one you mention.

So we have made a beta version here that fix this issue:

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

This will be included in next official release.

commented Jun 25, 2014 by anonymous
Thank you, the beta version works!
...