#1271 Fix autonumber positioning in sequence diagrams with multiline texts

This commit is contained in:
Marc Faber
2020-04-04 21:53:31 +02:00
parent 9f8a0234aa
commit fc70a8e145
3 changed files with 22 additions and 1 deletions

View File

@@ -182,5 +182,18 @@ context('Sequence diagram', () => {
{}
);
});
it('should render autonumber with different line breaks', () => {
imgSnapshotTest(
`
sequenceDiagram
autonumber
Alice->>John: Hello John,<br>how are you?
Alice->>John: John,<br/>can you hear me?
John-->>Alice: Hi Alice,<br />I can hear you!
John-->>Alice: I feel great!
`,
{}
);
});
});
});