-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
when declaring participants the elements are generated twice #370
Comments
Has anyone figured out what is causing this issue? |
Make sure you don't have white space after the John's participant declaration. They should chop off the white space when registering it, but they don't. So when you create the edge from John, "John " is registered but not "John", so it registers a new one at the end. |
there is no whitespace after either participant declaration, so this is not it. |
I have the same problem. Would be nice if anyone can find what is causing this. |
Generated SVG is
So it looks like it is a line-feed problem. Switching my input file from CRLF -> LF fixed the issue, and I tried to write a quick string.replace fix, but can't get that to work |
Try the latest CLI program: https://github.com/mermaidjs/mermaid.cli Feel free to reopen if you still have this issue. |
…yarn/develop/prettier-2.4.1 chore(deps-dev): bump prettier from 2.4.0 to 2.4.1
from the documentation
using the live editor this is rendered correctly, but using the CLI i get this
The text was updated successfully, but these errors were encountered: