Closed jorgheymans closed 7 years ago
Has anyone figured out what is causing this issue?
I have a very similar issue with IE 11 where the SVG markup is repeated twice, but it works correctly with Chrome and Firefox.
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. Also since I want to activate one off the participants from the beginning, this is leading to issues (since I cannot activate a participant that is not yet created.)
Would be nice if anyone can find what is causing this.
Generated SVG is
<rect x="0" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor" />
<text x="75" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle;">
<tspan x="75" dy="0">Example Participant
</tspan>
</text>
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.
from the documentation
using the live editor this is rendered correctly, but using the CLI i get this