-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
State diagram : having a space in the state name #1342
Comments
Yswsii: Your state with spaces in it |
Hi @Kochise,
I think this is what @sharkx referes to with
The "empty area below" is probably the added horizontal line and the empty space in the node which you can see here: Compare this to a state without a separate label: |
Yeah, ok, now I get it (a picture, 1000 words, ...) I don't know, I've got the same issue, I used this as a fallback until a proper solution is found. |
This example was originally shown by https://github.com/aleneum in mermaid-js#1342.
This is a great library. Thank you for making it available.
The question I have is fairly simple : how to add a space in the state name for the state diagram.
Here's what I've tried, and none gives a proper result :
1, for every state add a line for the 'label' like : : some long text
Kinda works, but it sets the text as title for the state with an empty area below
Also works, but creates very large nodes; I'm guessing the node width is calculated on the length of the input string, not the actual string.
I'm also thinking that this must be the easiest to fix.
Any help is appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: