fixed ignored comment width with sync
This commit is contained in:
parent
030fd3edba
commit
b5c34c154f
Binary file not shown.
@ -61,8 +61,8 @@
|
||||
_gap()
|
||||
|
||||
_sync({
|
||||
_seq("bob", "alice")
|
||||
_seq("bob", "craig")
|
||||
_seq("bob", "alice", comment: "Synched", comment-align: "start")
|
||||
_seq("bob", "craig", comment: "Synched", comment-align: "start")
|
||||
})
|
||||
_gap()
|
||||
|
||||
|
@ -20,6 +20,16 @@
|
||||
let pars-i = get-participants-i(participants)
|
||||
let cells = ()
|
||||
|
||||
// Unwrap syncs
|
||||
let i = 0
|
||||
while i < elements.len() {
|
||||
let elmt = elements.at(i)
|
||||
if elmt.type == "sync" {
|
||||
elements = elements.slice(0, i + 1) + elmt.elmts + elements.slice(i + 1)
|
||||
}
|
||||
i += 1
|
||||
}
|
||||
|
||||
// Compute max lifeline levels
|
||||
for elmt in elements {
|
||||
if elmt.type == "seq" {
|
||||
|
Loading…
Reference in New Issue
Block a user