The code below produces an undesired behavior : the "very long text" in the "note right" leads to the "no" branch, to which the note is attached to, being rejected very far on the right.
The resulting diagram has a very unbalanced look, with a huge void space right in the middle
The diagrams behave in that way even in case of "not so long text" in the "note right". The note right is rejected on the right with enough place in the middle to put a "not so long text" note, although the note is not here.
It's as if the corresponding empty place for a "very long text" in a "note left" was created, although it's not a "note left"
@startuml
if (condition?) then (yes)
:yes;
else (no)
:no;
note right
any very very very very very very very very very very very very very very very very very very very very long text
end note
endif
stop
@enduml
PlantUML version 7988